mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
just add the writer rather than adding both and removing one
This commit is contained in:
parent
87dd62ab2e
commit
e43b2b35c7
1 changed files with 1 additions and 2 deletions
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in a new issue