Class: ActionController::Filters::AroundFilter
- Inherits:
-
Filter
- Object
- ActiveSupport::Callbacks::Callback
- Filter
- ActionController::Filters::AroundFilter
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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
|
# File 'lib/action_controller/filters.rb', line 387
def call(controller, &block)
if should_run_callback?(controller)
method = filter_responds_to_before_and_after? ? around_proc : self.method
if method.is_a?(Proc) && method.arity == 2
evaluate_method(method, controller, block)
else
evaluate_method(method, controller, &block)
end
else
block.call
end
end
|
383
384
385
|
# File 'lib/action_controller/filters.rb', line 383
def type
:around
end
|