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/partial_helper.rb,
lib/vex/action_controller/verify_action.rb,
lib/vex/action_controller/error.rb

Defined Under Namespace

Modules: WhitelistActions, WhitelistControllerActions

Class Method Summary collapse

Instance 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

Instance Method Details

#render_vex_partial(opts) ⇒ Object



57
58
59
# File 'lib/vex/action_controller/partial_helper.rb', line 57

def render_vex_partial(opts)
  render_to_string(opts)
end