diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2013-02-26 16:57:18 -0800 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2013-02-26 16:57:18 -0800 |
commit | ee291b9b41a959e557b7732100d1ec3f27aae4f8 (patch) | |
tree | 8aba4827751fd39fd1cb8fcbd270cd0578f1713f /activerecord/lib/active_record/relation/predicate_builder.rb | |
parent | 55a1765942bc3d78ba5d449b5daf17a3c902e57c (diff) | |
download | rails-ee291b9b41a959e557b7732100d1ec3f27aae4f8.tar.gz rails-ee291b9b41a959e557b7732100d1ec3f27aae4f8.tar.bz2 rails-ee291b9b41a959e557b7732100d1ec3f27aae4f8.zip |
Revert "Merge pull request #9208 from dylanahsmith/3-2-mysql-quote-numeric"
This reverts commit 921a296a3390192a71abeec6d9a035cc6d1865c8.
Diffstat (limited to 'activerecord/lib/active_record/relation/predicate_builder.rb')
-rw-r--r-- | activerecord/lib/active_record/relation/predicate_builder.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation/predicate_builder.rb b/activerecord/lib/active_record/relation/predicate_builder.rb index 236fd5cdfd..b31fdfd981 100644 --- a/activerecord/lib/active_record/relation/predicate_builder.rb +++ b/activerecord/lib/active_record/relation/predicate_builder.rb @@ -51,10 +51,6 @@ module ActiveRecord when Class # FIXME: I think we need to deprecate this behavior attribute.eq(value.name) - when Integer, ActiveSupport::Duration - # Arel treats integers as literals, but they should be quoted when compared with strings - column = engine.connection.schema_cache.columns_hash[table.name][attribute.name.to_s] - attribute.eq(Arel::Nodes::SqlLiteral.new(engine.connection.quote(value, column))) else attribute.eq(value) end |