From e4558e0dbfc87724fb3ce3fdc38aea3e49843aec Mon Sep 17 00:00:00 2001 From: wycats Date: Mon, 8 Mar 2010 18:48:58 -0800 Subject: [PATCH] Now that class_attribute creates an instance method, remove it to avoid deprecation warnings ;) --- actionpack/lib/action_dispatch/routing/url_for.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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