Module: ActionController::UrlWriter

Defined in:
lib/action_controller/deprecated/url_writer.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



3
4
5
6
7
# File 'lib/action_controller/deprecated/url_writer.rb', line 3

def self.included(klass)
  ActiveSupport::Deprecation.warn "include ActionController::UrlWriter is deprecated. Instead, " \
                                  "include Rails.application.routes.url_helpers"
  klass.class_eval { include Rails.application.routes.url_helpers }
end