mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Deprecate ActionController::UrlWriter properly
This commit is contained in:
@@ -35,10 +35,10 @@ module ActionController
|
||||
end
|
||||
|
||||
autoload :Dispatcher, 'action_controller/deprecated/dispatcher'
|
||||
autoload :UrlWriter, 'action_controller/deprecated/url_writer'
|
||||
autoload :Integration, 'action_controller/deprecated/integration_test'
|
||||
autoload :IntegrationTest, 'action_controller/deprecated/integration_test'
|
||||
autoload :PerformanceTest, 'action_controller/deprecated/performance_test'
|
||||
autoload :UrlWriter, 'action_controller/deprecated'
|
||||
autoload :Routing, 'action_controller/deprecated'
|
||||
autoload :TestCase, 'action_controller/test_case'
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
module ActionController
|
||||
module UrlWriter
|
||||
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
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user