Module: ActionController::Base::WhitelistActions

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

Instance Method Summary collapse

Instance Method Details

#actions(*names) ⇒ Object


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

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

#skip_whitelist_actionsObject


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

def skip_whitelist_actions
  @whitelisted_actions = :skip
end

#whitelisted_actionsObject


32
33
34
35
# File 'lib/vex/action_controller/whitelisted_actions.rb', line 32

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