diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-03 13:10:11 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-03 13:10:11 -0800 |
commit | d1230a8cd0ddcf0497ffe294548549c2ab0bef1c (patch) | |
tree | 2a671b2ee682822676e731076e791322b20d66e9 | |
parent | cbe918093b6ad0994cae0fce014c0d987447d9ab (diff) | |
parent | 2f8a7edadb2bd79580c0ca249b36451c767205a4 (diff) | |
download | rails-d1230a8cd0ddcf0497ffe294548549c2ab0bef1c.tar.gz rails-d1230a8cd0ddcf0497ffe294548549c2ab0bef1c.tar.bz2 rails-d1230a8cd0ddcf0497ffe294548549c2ab0bef1c.zip |
Merge pull request #4283 from lest/fix-singleton-checking
use correct variant of checking whether class is a singleton
-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 45bec264ff..305ed4964b 100644 --- a/activesupport/lib/active_support/core_ext/class/attribute.rb +++ b/activesupport/lib/active_support/core_ext/class/attribute.rb @@ -110,6 +110,6 @@ class Class private def singleton_class? - !name || '' == name + ancestors.first != self end end |