aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/routing/url_for.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb
index 0ab20dcb39..035b0ec4ca 100644
--- a/actionpack/lib/action_dispatch/routing/url_for.rb
+++ b/actionpack/lib/action_dispatch/routing/url_for.rb
@@ -90,9 +90,10 @@ module ActionDispatch
class_attribute :default_url_options
else
mattr_accessor :default_url_options
- remove_method :default_url_options
end
+ remove_method :default_url_options
+
self.default_url_options = {}
end