Class: PublicActivity::ORM::ActiveRecord::Adapter

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

Overview

Provides ActiveRecord specific, database-related routines for use by PublicActivity.

Class Method Summary collapse

Class Method Details

.create_activity(trackable, options) ⇒ Object

Creates the activity on trackable with options


10
11
12
# File 'lib/public_activity/orm/active_record/adapter.rb', line 10

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