Class: PublicActivity::ORM::Mongoid::Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/public_activity/orm/mongoid/adapter.rb

Class Method Summary collapse

Class Method Details

.create_activity(trackable, options) ⇒ Object

Creates the activity on trackable with options


6
7
8
# File 'lib/public_activity/orm/mongoid/adapter.rb', line 6

def self.create_activity(trackable, options)
  trackable.activities.create options
end