Module: Reputation::User::Relations

Defined in:
lib/reputation/user.rb

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/reputation/user.rb', line 10

def self.included(model)
  model.class_eval do
    
    has_many :behaviours, :class_name => "ReputationBehaviour", :extend => AddRails2 if Reputation::RailsVersion.rails_2?
    has_many :behaviours, :class_name => "ReputationBehaviour", :extend => AddRails3 if Reputation::RailsVersion.rails_3?
    
  end
end