Module: PublicActivity::ORM::Mongoid::Trackable

Defined in:
lib/public_activity/orm/mongoid/trackable.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object


5
6
7
# File 'lib/public_activity/orm/mongoid/trackable.rb', line 5

def self.extended(base)
  base.has_many :activities, :class_name => "::PublicActivity::Activity", :as => :trackable
end