module Amistad::ActiveRecord::HasActions::ClassMethods

Public Instance Methods

has_predefined_action(action) click to toggle source
# File lib/amistad/active_record/has_actions.rb, line 19
def has_predefined_action(action)
  predefined_actions.has_key?(action)
end
predefine_action(action, options = nil) click to toggle source
# File lib/amistad/active_record/has_actions.rb, line 15
def predefine_action(action, options = nil)
  predefined_actions[action] = Action.new(options)
end
predefined_actions() click to toggle source
# File lib/amistad/active_record/has_actions.rb, line 11
def predefined_actions
  @@predefined_actions ||= {}
end
remove_all_predefined_actions() click to toggle source
# File lib/amistad/active_record/has_actions.rb, line 23
def remove_all_predefined_actions
  @@predefined_actions = {}
end