diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-09 16:12:07 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-05-09 16:12:07 -0700 |
commit | df0324f7ddee9ebe6231a488a61ca513678b4e84 (patch) | |
tree | 29354bd4ba5f0e4e49bd2d2774e0f21967300628 /activerecord/lib/active_record | |
parent | 9bf1a0db4acbbf9e8e6f707250269185224e7efe (diff) | |
parent | 12c44fe7f566990923fd0814acaa76b83309c832 (diff) | |
download | rails-df0324f7ddee9ebe6231a488a61ca513678b4e84.tar.gz rails-df0324f7ddee9ebe6231a488a61ca513678b4e84.tar.bz2 rails-df0324f7ddee9ebe6231a488a61ca513678b4e84.zip |
Merge pull request #5362 from zenprogrammer/quoting_bug
Fixed bug in ActiveRecord that caused classes to be quoted incorrectly
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/quoting.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb index 44ac37c498..6f9f0399db 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb @@ -34,6 +34,7 @@ module ActiveRecord when Numeric then value.to_s when Date, Time then "'#{quoted_date(value)}'" when Symbol then "'#{quote_string(value.to_s)}'" + when Class then "'#{value.to_s}'" else "'#{quote_string(YAML.dump(value))}'" end |