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:
parent
42a99dbaba
commit
8b14a6b768
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue