aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-03-08 18:48:58 -0800
committerwycats <wycats@gmail.com>2010-03-08 18:48:58 -0800
commite4558e0dbfc87724fb3ce3fdc38aea3e49843aec (patch)
treec5a318c642d4440c978462dc378c70bb643da799 /actionpack/lib
parent056042eb829e0507ed605264d43a79ce88112288 (diff)
downloadrails-e4558e0dbfc87724fb3ce3fdc38aea3e49843aec.tar.gz
rails-e4558e0dbfc87724fb3ce3fdc38aea3e49843aec.tar.bz2
rails-e4558e0dbfc87724fb3ce3fdc38aea3e49843aec.zip
Now that class_attribute creates an instance method, remove it to avoid deprecation warnings ;)
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