Class: ActionController::Base

Inherits:
Object
  • Object
show all
Extended by:
VerifyHostname
Includes:
Error, VerifyAction
Defined in:
lib/vex/action_controller/whitelisted_actions.rb,
lib/vex/action_controller/verify_hostname.rb,
lib/vex/action_controller/verify_action.rb,
lib/vex/action_controller/error.rb

Defined Under Namespace

Modules: WhitelistActions, WhitelistControllerActions

Class Method Summary collapse

Class Method Details

.whitelist_actions(*names) ⇒ Object


2
3
4
5
6
7
8
9
# File 'lib/vex/action_controller/whitelisted_actions.rb', line 2

def self.whitelist_actions(*names)
  extend WhitelistActions
  include WhitelistControllerActions

  before_filter :verify_whitelisted_actions

  actions *names
end