diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 15:46:26 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 15:55:28 -0300 |
commit | dc6efd387faf7f11e93877cb6c74033d0b73e75f (patch) | |
tree | c9ec82b24bd477abb2034eecb674a55084e4a912 /activesupport | |
parent | 479bd52af8fed95ca2d6893f20fb3cc6e11e7f5c (diff) | |
download | rails-dc6efd387faf7f11e93877cb6c74033d0b73e75f.tar.gz rails-dc6efd387faf7f11e93877cb6c74033d0b73e75f.tar.bz2 rails-dc6efd387faf7f11e93877cb6c74033d0b73e75f.zip |
singleton_class? is already pressent at Ruby 2.2
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/class/attribute.rb | 8 |
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 |