Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use #remove_possible_method instead

  • Loading branch information...
commit 1c2dc92aaeee1b5247957f626343e767418c3780 1 parent a93bd11
@smartinez87 smartinez87 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/core_ext/class/attribute.rb
View
2  activesupport/lib/active_support/core_ext/class/attribute.rb
@@ -84,7 +84,7 @@ def #{name}
val
end
- remove_method :#{name} if method_defined?(:#{name})
+ remove_possible_method :#{name}
def #{name}
defined?(@#{name}) ? @#{name} : self.class.#{name}
end
Please sign in to comment.
Something went wrong with that request. Please try again.