Module: PublicActivity::ORM::MongoMapper::Trackable

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

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



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

def self.extended(base)
  base.many :activities, :class_name => "::PublicActivity::Activity", order: :created_at.asc, :as => :trackable
end