Module: ActionStore::Mixin
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/action_store/mixin.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #create_action(action_type, opts) ⇒ Object
- #destroy_action(action_type, opts) ⇒ Object
- #find_action(action_type, opts) ⇒ Object
Instance Method Details
#create_action(action_type, opts) ⇒ Object
14 15 16 17 |
# File 'lib/action_store/mixin.rb', line 14 def create_action(action_type, opts) opts[:user] = self self.class.create_action(action_type, opts) end |
#destroy_action(action_type, opts) ⇒ Object
19 20 21 22 |
# File 'lib/action_store/mixin.rb', line 19 def destroy_action(action_type, opts) opts[:user] = self self.class.destroy_action(action_type, opts) end |
#find_action(action_type, opts) ⇒ Object
9 10 11 12 |
# File 'lib/action_store/mixin.rb', line 9 def find_action(action_type, opts) opts[:user] = self self.class.find_action(action_type, opts) end |