diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-05-04 15:07:34 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-05-04 15:07:34 -0300 |
commit | 1c2dc92aaeee1b5247957f626343e767418c3780 (patch) | |
tree | 76aa54be5e975bdf0cf4ea6edc76195604bb8f90 | |
parent | a93bd11b1d90da5abdef11c2774bb9bafe27bfb1 (diff) | |
download | rails-1c2dc92aaeee1b5247957f626343e767418c3780.tar.gz rails-1c2dc92aaeee1b5247957f626343e767418c3780.tar.bz2 rails-1c2dc92aaeee1b5247957f626343e767418c3780.zip |
Use #remove_possible_method instead
-rw-r--r-- | activesupport/lib/active_support/core_ext/class/attribute.rb | 2 |
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 |