1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix singleton_class?

Due to changes from http://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/39628 current `singleton_class?` implementation fails.
Changed based on reference from http://bugs.ruby-lang.org/issues/7609
This commit is contained in:
Vipul A M 2013-10-14 22:40:21 +05:30
parent 42a99dbaba
commit 8b14a6b768

View file

@ -118,7 +118,10 @@ class Class
end
private
def singleton_class?
ancestors.first != self
unless respond_to?(:singleton_class?)
def singleton_class?
ancestors.first != self
end
end
end