diff options
author | RainerBlessing <rainer.blessing@googlemail.com> | 2010-08-03 20:37:46 +0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-08-03 21:08:43 -0300 |
commit | 7e4e1f0ca5722008b288224221405eba486345c1 (patch) | |
tree | 960e181e44f31ba9f01cc66c5196efe4035277f9 /activerecord/lib/active_record/connection_adapters/abstract | |
parent | 02a5842cd09bd75de4c2fdb6b474c6c0ff163ebf (diff) | |
download | rails-7e4e1f0ca5722008b288224221405eba486345c1.tar.gz rails-7e4e1f0ca5722008b288224221405eba486345c1.tar.bz2 rails-7e4e1f0ca5722008b288224221405eba486345c1.zip |
query value is converted to_s instead of to_yaml
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/quoting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb index d7b5bf8e31..e2b3773a99 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb @@ -30,7 +30,7 @@ module ActiveRecord if value.acts_like?(:date) || value.acts_like?(:time) "'#{quoted_date(value)}'" else - "'#{quote_string(value.to_yaml)}'" + "'#{quote_string(value.to_s)}'" end end end |