Class: ActionController::Filters::BeforeFilter
- Inherits:
-
Filter
- Object
- ActiveSupport::Callbacks::Callback
- Filter
- ActionController::Filters::BeforeFilter
show all
- Defined in:
- lib/action_controller/filters.rb
Overview
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
|
186
187
188
|
# File 'lib/action_controller/filters.rb', line 186
def type
:before
end
|