diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-21 07:56:05 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-21 07:56:05 -0800 |
commit | 707eed72d33ab5048ad1545df4fc1f81652379af (patch) | |
tree | f62b74d9d619ca68c46b2ae63175d774eef418ba /activesupport/lib/active_support/core_ext | |
parent | 2e9eb0a3ca88bf2fe402261ef684fb215edea215 (diff) | |
parent | a57c6441a829a08d3ca341eecf4f1b4a5e43b909 (diff) | |
download | rails-707eed72d33ab5048ad1545df4fc1f81652379af.tar.gz rails-707eed72d33ab5048ad1545df4fc1f81652379af.tar.bz2 rails-707eed72d33ab5048ad1545df4fc1f81652379af.zip |
Merge pull request #4103 from lest/remove-1-8-code
remove Kernel#singleton_class from core_ext as it is present in ruby 1.9
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r-- | activesupport/lib/active_support/core_ext/kernel/singleton_class.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/core_ext/kernel/singleton_class.rb b/activesupport/lib/active_support/core_ext/kernel/singleton_class.rb index 33612155fb..9bbf1bbd73 100644 --- a/activesupport/lib/active_support/core_ext/kernel/singleton_class.rb +++ b/activesupport/lib/active_support/core_ext/kernel/singleton_class.rb @@ -1,11 +1,4 @@ module Kernel - # Returns the object's singleton class. - def singleton_class - class << self - self - end - end unless respond_to?(:singleton_class) # exists in 1.9.2 - # class_eval on an object acts like singleton_class.class_eval. def class_eval(*args, &block) singleton_class.class_eval(*args, &block) |