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


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

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