aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/class/attribute.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-04 11:14:57 -0700
committerJosé Valim <jose.valim@gmail.com>2011-05-04 11:14:57 -0700
commit871096d85426b49bf97c0de01850df248b7d714c (patch)
tree80b4c2c6740f11d42acdc8614cd3d2d3394b4878 /activesupport/lib/active_support/core_ext/class/attribute.rb
parentafc3ccf74cbb6c3d495558e934ced1c006dacda8 (diff)
parent9be7911e873e1ba0d0b0bac197b426693b4f3885 (diff)
downloadrails-871096d85426b49bf97c0de01850df248b7d714c.tar.gz
rails-871096d85426b49bf97c0de01850df248b7d714c.tar.bz2
rails-871096d85426b49bf97c0de01850df248b7d714c.zip
Merge pull request #387 from smartinez87/remove_method.
Use #remove_possible_method instead
Diffstat (limited to 'activesupport/lib/active_support/core_ext/class/attribute.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/class/attribute.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/attribute.rb b/activesupport/lib/active_support/core_ext/class/attribute.rb
index 5414b3a18f..7baba75ad3 100644
--- a/activesupport/lib/active_support/core_ext/class/attribute.rb
+++ b/activesupport/lib/active_support/core_ext/class/attribute.rb
@@ -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