diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-20 14:40:11 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-20 14:40:11 +0000 |
commit | b40d3c9e62325512e167b6fccc7d9d1a60948faa (patch) | |
tree | b6207a770aae0bf1bd23b81a687eabe34104909b /activerecord/lib/active_record/base.rb | |
parent | db6688585f47d96f30ed1c253385e1053c789d2b (diff) | |
download | rails-b40d3c9e62325512e167b6fccc7d9d1a60948faa.tar.gz rails-b40d3c9e62325512e167b6fccc7d9d1a60948faa.tar.bz2 rails-b40d3c9e62325512e167b6fccc7d9d1a60948faa.zip |
Replaced === checks with is_a? checks #502, #82 [Marcel Molina]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@466 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 10a415899b..5af24caeef 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1203,7 +1203,7 @@ module ActiveRecord #:nodoc: end def object_from_yaml(string) - return string unless String === string + return string unless string.is_a?(String) if has_yaml_encoding_header?(string) begin YAML::load(string) |