Module: Bento::Models::Modules::UserAssociation

Defined in:
lib/bento/models/modules/user_association.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
# File 'lib/bento/models/modules/user_association.rb', line 5

def self.included(base)
  base.class_eval do
    has_many :bento_memberships
    has_many :users, :through => :bento_memberships
  end
end