Module: ActionController::Base::WhitelistActions

Defined in:
lib/vex/action_controller/whitelisted_actions.rb

Instance Method Summary collapse

Instance Method Details

#actions(*names) ⇒ Object



45
46
47
# File 'lib/vex/action_controller/whitelisted_actions.rb', line 45

def actions(*names)
  @whitelisted_actions = names.map(&:to_s).to_set
end

#skip_whitelist_actionsObject



41
42
43
# File 'lib/vex/action_controller/whitelisted_actions.rb', line 41

def skip_whitelist_actions
  @whitelisted_actions = :skip
end

#whitelisted_actionsObject



36
37
38
39
# File 'lib/vex/action_controller/whitelisted_actions.rb', line 36

def whitelisted_actions
  @whitelisted_actions ||
  (superclass.respond_to?(:whitelisted_actions) ? superclass.whitelisted_actions : nil)
end