mirror of
https://github.com/github/rails.git
synced 2026-01-08 22:27:59 -05:00
don't override singleton_class? if it already exists
This commit is contained in:
@@ -108,8 +108,10 @@ class Class
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
def singleton_class?
|
||||
ancestors.first != self
|
||||
private
|
||||
unless respond_to?(:singleton_class?)
|
||||
def singleton_class?
|
||||
ancestors.first != self
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user