Module: ActionStore::Mixin

Extended by:
ActiveSupport::Concern
Defined in:
lib/action_store/mixin.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#create_action(action_type, opts) ⇒ Object



15
16
17
18
# File 'lib/action_store/mixin.rb', line 15

def create_action(action_type, opts)
  opts[:user] = self
  self.class.create_action(action_type, opts)
end

#destroy_action(action_type, opts) ⇒ Object



20
21
22
23
# File 'lib/action_store/mixin.rb', line 20

def destroy_action(action_type, opts)
  opts[:user] = self
  self.class.destroy_action(action_type, opts)
end

#find_action(action_type, opts) ⇒ Object



10
11
12
13
# File 'lib/action_store/mixin.rb', line 10

def find_action(action_type, opts)
  opts[:user] = self
  self.class.find_action(action_type, opts)
end