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



190
191
192
193
194
195
# File 'lib/action_controller/filters.rb', line 190

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

#typeObject



186
187
188
# File 'lib/action_controller/filters.rb', line 186

def type
  :before
end