Class: ActionController::Filters::BeforeFilter

Inherits:
Filter
  • Object
show all
Defined in:
lib/action_controller/filters.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Filter

#after?, #around?, #before?

Instance Method Details

#call(controller, &block) ⇒ Object



429
430
431
432
433
434
# File 'lib/action_controller/filters.rb', line 429

def call(controller, &block)
  super
  if controller.send!(:performed?)
    controller.send!(:halt_filter_chain, method, :rendered_or_redirected)
  end
end

#typeObject



425
426
427
# File 'lib/action_controller/filters.rb', line 425

def type
  :before
end