Permalink
Browse files

Merge pull request #12532 from vipulnsward/singleton_class

Fix `singleton_class?`
  • Loading branch information...
2 parents 42a99db + 8b14a6b commit 4999281ec16db930b436febd9d60ab80c2618852 @rafaelfranca rafaelfranca committed Oct 14, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 activesupport/lib/active_support/core_ext/class/attribute.rb
@@ -118,7 +118,10 @@ def class_attribute(*attrs)
end
private
- def singleton_class?
- ancestors.first != self
+
+ unless respond_to?(:singleton_class?)
+ def singleton_class?
+ ancestors.first != self
+ end
end
end

0 comments on commit 4999281

Please sign in to comment.