aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-11-09 20:26:46 +0100
committerXavier Noria <fxn@hashref.com>2009-11-09 22:16:51 +0100
commitd4513ac69958063de3cad9aa655fe9d63e82ec76 (patch)
tree83b3c446369f40a8ba41098efd79458abfcc4c12 /activesupport/lib/active_support
parent047007fa9ddff03e1979f16a54cf059f4f592d46 (diff)
downloadrails-d4513ac69958063de3cad9aa655fe9d63e82ec76.tar.gz
rails-d4513ac69958063de3cad9aa655fe9d63e82ec76.tar.bz2
rails-d4513ac69958063de3cad9aa655fe9d63e82ec76.zip
Object#instance_variable_defined? is not needed for Ruby >= 1.8.7
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/core_ext/object/instance_variables.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/instance_variables.rb b/activesupport/lib/active_support/core_ext/object/instance_variables.rb
index 4ecaab3bbb..866317b17a 100644
--- a/activesupport/lib/active_support/core_ext/object/instance_variables.rb
+++ b/activesupport/lib/active_support/core_ext/object/instance_variables.rb
@@ -1,11 +1,4 @@
class Object
- # Available in 1.8.6 and later.
- unless respond_to?(:instance_variable_defined?)
- def instance_variable_defined?(variable)
- instance_variables.include?(variable.to_s)
- end
- end
-
# Returns a hash that maps instance variable names without "@" to their
# corresponding values. Keys are strings both in Ruby 1.8 and 1.9.
#