mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use #remove_possible_method instead
This commit is contained in:
parent
a93bd11b1d
commit
1c2dc92aae
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class Class
|
|||
val
|
||||
end
|
||||
|
||||
remove_method :#{name} if method_defined?(:#{name})
|
||||
remove_possible_method :#{name}
|
||||
def #{name}
|
||||
defined?(@#{name}) ? @#{name} : self.class.#{name}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue