aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-05-04 15:07:34 -0300
committerSebastian Martinez <sebastian@wyeworks.com>2011-05-04 15:07:34 -0300
commit1c2dc92aaeee1b5247957f626343e767418c3780 (patch)
tree76aa54be5e975bdf0cf4ea6edc76195604bb8f90 /activesupport/lib
parenta93bd11b1d90da5abdef11c2774bb9bafe27bfb1 (diff)
downloadrails-1c2dc92aaeee1b5247957f626343e767418c3780.tar.gz
rails-1c2dc92aaeee1b5247957f626343e767418c3780.tar.bz2
rails-1c2dc92aaeee1b5247957f626343e767418c3780.zip
Use #remove_possible_method instead
Diffstat (limited to 'activesupport/lib')
-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