aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/class
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 15:46:26 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 15:55:28 -0300
commitdc6efd387faf7f11e93877cb6c74033d0b73e75f (patch)
treec9ec82b24bd477abb2034eecb674a55084e4a912 /activesupport/lib/active_support/core_ext/class
parent479bd52af8fed95ca2d6893f20fb3cc6e11e7f5c (diff)
downloadrails-dc6efd387faf7f11e93877cb6c74033d0b73e75f.tar.gz
rails-dc6efd387faf7f11e93877cb6c74033d0b73e75f.tar.bz2
rails-dc6efd387faf7f11e93877cb6c74033d0b73e75f.zip
singleton_class? is already pressent at Ruby 2.2
Diffstat (limited to 'activesupport/lib/active_support/core_ext/class')
-rw-r--r--activesupport/lib/active_support/core_ext/class/attribute.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/attribute.rb b/activesupport/lib/active_support/core_ext/class/attribute.rb
index f2a221c396..f2b7bb3ef1 100644
--- a/activesupport/lib/active_support/core_ext/class/attribute.rb
+++ b/activesupport/lib/active_support/core_ext/class/attribute.rb
@@ -116,12 +116,4 @@ class Class
attr_writer name if instance_writer
end
end
-
- private
-
- unless respond_to?(:singleton_class?)
- def singleton_class?
- ancestors.first != self
- end
- end
end