Class: ActionController::Dispatcher
- Inherits:
-
Object
- Object
- ActionController::Dispatcher
- Defined in:
- actionpack/lib/action_controller/deprecated/dispatcher.rb
Class Method Summary (collapse)
- + (Object) after_dispatch(*args, &block)
- + (Object) before_dispatch(*args, &block)
- + (Object) new
- + (Object) to_prepare(*args, &block)
Class Method Details
+ (Object) after_dispatch(*args, &block)
10 11 12 13 14 |
# File 'actionpack/lib/action_controller/deprecated/dispatcher.rb', line 10 def after_dispatch(*args, &block) ActiveSupport::Deprecation.warn "ActionController::Dispatcher.after_dispatch is deprecated. " << "Please use ActionDispatch::Callbacks.after instead.", caller ActionDispatch::Callbacks.after(*args, &block) end |
+ (Object) before_dispatch(*args, &block)
4 5 6 7 8 |
# 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 |
+ (Object) new
22 23 24 25 |
# File 'actionpack/lib/action_controller/deprecated/dispatcher.rb', line 22 def new ActiveSupport::Deprecation.warn "ActionController::Dispatcher.new is deprecated, use Rails.application instead." Rails.application end |
+ (Object) to_prepare(*args, &block)
16 17 18 19 20 |
# File 'actionpack/lib/action_controller/deprecated/dispatcher.rb', line 16 def to_prepare(*args, &block) ActiveSupport::Deprecation.warn "ActionController::Dispatcher.to_prepare is deprecated. " << "Please use config.to_prepare instead", caller ActionDispatch::Callbacks.after(*args, &block) end |