has_many :through on self?
- by Glex
I have a User model. A user can be either a dj, a club, or a clubber (this is controlled by the User#account_type attribute).
A club can have many djs, and a dj can have many users:
enumerated_attribute :account_type, %w(^clubber dj club), :nil => false do
label :clubber => "Clubber"
label :dj => "DJ"
label :club => "Club"
end
…