Method: PublicActivity::ORM::ActiveRecord::Adapter.create_activity!

Defined in:
lib/public_activity/orm/active_record/adapter.rb

.create_activity!(trackable, options) ⇒ Object

Creates activity on ‘trackable` with `options`; throws error on validation failure


17
18
19
# File 'lib/public_activity/orm/active_record/adapter.rb', line 17

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