Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

The instance_reader of default_url_options needs to not exist.

  • Loading branch information...
commit 8247bd9d3e1c2772f2f1e0e7ee30ff7f19ddd0de 1 parent 3f0ed20
Yehuda Katz authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  actionpack/lib/action_dispatch/routing/url_for.rb
View
1  actionpack/lib/action_dispatch/routing/url_for.rb
@@ -90,6 +90,7 @@ module UrlFor
class_attribute :default_url_options
else
mattr_accessor :default_url_options
+ remove_method :default_url_options
end
self.default_url_options = {}

2 comments on commit 8247bd9

@nertzy

Shouldn't this be a mattr_writer instead? No need to define the getter and then immediately remove it.

@carllerche
Collaborator

It removes the instance method. The class reader is still needed.

Please sign in to comment.
Something went wrong with that request. Please try again.