aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-07-30 14:38:50 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-07-30 14:38:50 -0700
commitcf6658c2842d92c7d23928ec6f72074dce345f15 (patch)
tree3a498ccb12f33b812b58c1ec25337527ac6f2a8e /actionpack/lib/action_dispatch/routing
parentbd944e078d0f40e26d66b03da1449ff9cdcc101b (diff)
downloadrails-cf6658c2842d92c7d23928ec6f72074dce345f15.tar.gz
rails-cf6658c2842d92c7d23928ec6f72074dce345f15.tar.bz2
rails-cf6658c2842d92c7d23928ec6f72074dce345f15.zip
`add` will remove the method if it exists already
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 0906c67719..459097f327 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -290,7 +290,6 @@ module ActionDispatch
#
def define_url_helper(mod, route, name, opts, route_key, url_strategy)
helper = UrlHelper.create(route, opts, route_key, url_strategy)
- mod.remove_possible_method name
mod.module_eval do
define_method(name) do |*args|
options = nil