aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/kernel/singleton_class.rb
diff options
context:
space:
mode:
authorlest <just.lest@gmail.com>2011-12-21 18:53:38 +0300
committerlest <just.lest@gmail.com>2011-12-21 18:53:38 +0300
commita57c6441a829a08d3ca341eecf4f1b4a5e43b909 (patch)
treef62b74d9d619ca68c46b2ae63175d774eef418ba /activesupport/lib/active_support/core_ext/kernel/singleton_class.rb
parent2e9eb0a3ca88bf2fe402261ef684fb215edea215 (diff)
downloadrails-a57c6441a829a08d3ca341eecf4f1b4a5e43b909.tar.gz
rails-a57c6441a829a08d3ca341eecf4f1b4a5e43b909.tar.bz2
rails-a57c6441a829a08d3ca341eecf4f1b4a5e43b909.zip
remove Kernel#singleton_class from core_ext as it is present in ruby 1.9
Diffstat (limited to 'activesupport/lib/active_support/core_ext/kernel/singleton_class.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/kernel/singleton_class.rb7
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)