class method
self.before_dispatch
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
self.before_dispatch(*args, &block)
No documentation comment.
Parameters
-
argsrest -
blockblock
Source
# File actionpack/lib/action_controller/deprecated/dispatcher.rb, line 4
def before_dispatch(*args, &block)
ActiveSupport::Deprecation.warn "ActionController::Dispatcher.before_dispatch is deprecated. " <<
"Please use ActionDispatch::Callbacks.before instead.", caller
ActionDispatch::Callbacks.before(*args, &block)
end
Defined in actionpack/lib/action_controller/deprecated/dispatcher.rb line 4
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Dispatcher