aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-12-29 16:07:07 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-12-29 16:07:07 -0800
commite43b2b35c7042c87fd18e3ecd55c14eabd5746ba (patch)
tree48528c40aae6daaf0e7f559dbaa0236ec434c9f9 /actionpack
parent87dd62ab2e4a426011392f41090006428fd01e3c (diff)
downloadrails-e43b2b35c7042c87fd18e3ecd55c14eabd5746ba.tar.gz
rails-e43b2b35c7042c87fd18e3ecd55c14eabd5746ba.tar.bz2
rails-e43b2b35c7042c87fd18e3ecd55c14eabd5746ba.zip
just add the writer rather than adding both and removing one
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/url_for.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb
index 22e41c9c16..6c2a98ab15 100644
--- a/actionpack/lib/action_dispatch/routing/url_for.rb
+++ b/actionpack/lib/action_dispatch/routing/url_for.rb
@@ -90,8 +90,7 @@ module ActionDispatch
if respond_to?(:class_attribute)
class_attribute :default_url_options
else
- mattr_accessor :default_url_options
- remove_method :default_url_options
+ mattr_writer :default_url_options
end
self.default_url_options = {}