diff options
author | wycats <wycats@gmail.com> | 2010-03-08 18:48:58 -0800 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-08 18:48:58 -0800 |
commit | e4558e0dbfc87724fb3ce3fdc38aea3e49843aec (patch) | |
tree | c5a318c642d4440c978462dc378c70bb643da799 /actionpack/lib/action_dispatch/routing/url_for.rb | |
parent | 056042eb829e0507ed605264d43a79ce88112288 (diff) | |
download | rails-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/action_dispatch/routing/url_for.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/url_for.rb | 3 |
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 |