aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-07-30 14:53:28 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-07-30 14:53:28 -0700
commit68aea29cf5e5b856fdfa0b3087bf68cbd6310bd6 (patch)
tree30adb0e9a176265fbdbfd894e29172e2d85f5a8a /actionpack/lib/action_dispatch/routing
parent09603275e9f57ca133bd92557c1213cdfa02cff8 (diff)
downloadrails-68aea29cf5e5b856fdfa0b3087bf68cbd6310bd6.tar.gz
rails-68aea29cf5e5b856fdfa0b3087bf68cbd6310bd6.tar.bz2
rails-68aea29cf5e5b856fdfa0b3087bf68cbd6310bd6.zip
remove alias_method_chain
we can `super` in to the previous implementation.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 6e8016d360..4155efa03c 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -165,12 +165,10 @@ module ActionDispatch
include mod
helpers.each do |meth|
- define_method("#{meth}_with_warning") do |*args, &block|
+ define_method(meth) do |*args, &block|
ActiveSupport::Deprecation.warn("The method `#{meth}` cannot be used here as a full URL is required. Use `#{meth.to_s.sub(/_path$/, '_url')}` instead")
- send("#{meth}_without_warning", *args, &block)
+ super(*args, &block)
end
-
- alias_method_chain meth, :warning
end
end
else