1
0
Fork 0
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:
Sebastian Martinez 2011-05-04 15:07:34 -03:00
parent a93bd11b1d
commit 1c2dc92aae

View file

@ -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