Skip to content

Commit dc6efd3

Browse files
committed
singleton_class? is already pressent at Ruby 2.2
1 parent 479bd52 commit dc6efd3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

activesupport/lib/active_support/core_ext/class/attribute.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,4 @@ def class_attribute(*attrs)
116116
attr_writer name if instance_writer
117117
end
118118
end
119-
120-
private
121-
122-
unless respond_to?(:singleton_class?)
123-
def singleton_class?
124-
ancestors.first != self
125-
end
126-
end
127119
end

0 commit comments

Comments
 (0)