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

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

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



7
8
9
# File 'lib/public_activity/orm/mongoid/trackable.rb', line 7

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