aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/journey
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-02 23:16:51 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 11:58:41 -0300
commite4cfd353a47369dd32198b0e67b8cbb2f9a1c548 (patch)
treec6faa39f027512f0f1d1ca1ac44c28182261a933 /actionpack/lib/action_dispatch/journey
parent755dcd0691f74079c24196135f89b917062b0715 (diff)
downloadrails-e4cfd353a47369dd32198b0e67b8cbb2f9a1c548.tar.gz
rails-e4cfd353a47369dd32198b0e67b8cbb2f9a1c548.tar.bz2
rails-e4cfd353a47369dd32198b0e67b8cbb2f9a1c548.zip
Remove deprecated option `use_route` in controller tests
Diffstat (limited to 'actionpack/lib/action_dispatch/journey')
-rw-r--r--actionpack/lib/action_dispatch/journey/formatter.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/actionpack/lib/action_dispatch/journey/formatter.rb b/actionpack/lib/action_dispatch/journey/formatter.rb
index 177f586c0e..992c1a9efe 100644
--- a/actionpack/lib/action_dispatch/journey/formatter.rb
+++ b/actionpack/lib/action_dispatch/journey/formatter.rb
@@ -1,5 +1,4 @@
require 'action_controller/metal/exceptions'
-require 'active_support/deprecation'
module ActionDispatch
module Journey
@@ -81,9 +80,6 @@ module ActionDispatch
if named_routes.key?(name)
yield named_routes[name]
else
- # Make sure we don't show the deprecation warning more than once
- warned = false
-
routes = non_recursive(cache, options)
hash = routes.group_by { |_, r| r.score(options) }
@@ -92,17 +88,6 @@ module ActionDispatch
break if score < 0
hash[score].sort_by { |i, _| i }.each do |_, route|
- if name && !warned
- ActiveSupport::Deprecation.warn <<-MSG.squish
- You are trying to generate the URL for a named route called
- #{name.inspect} but no such route was found. In the future,
- this will result in an `ActionController::UrlGenerationError`
- exception.
- MSG
-
- warned = true
- end
-
yield route
end
end