lib/public_activity/orm/active_record/adapter.rb
module PublicActivity
module ORM
# Support for ActiveRecord for PublicActivity. Used by default and supported
# officialy.
module ActiveRecord
# Provides ActiveRecord specific, database-related routines for use by
# PublicActivity.
class Adapter
# Creates the activity on `trackable` with `options`
def self.create_activity(trackable, options)
trackable.activities.create options
end
end
end
end
end