diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-12-29 10:57:15 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-12-29 10:57:15 -0700 |
commit | 7eed50c7208a1b605e6ad04e877a3cbeb7cc3434 (patch) | |
tree | bcbe210ff724e4e5255545a9245a1d759cf4e1a8 /activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb | |
parent | 266ff700011dfcc4b76a7332bbfa64d9419c10bc (diff) | |
download | rails-7eed50c7208a1b605e6ad04e877a3cbeb7cc3434.tar.gz rails-7eed50c7208a1b605e6ad04e877a3cbeb7cc3434.tar.bz2 rails-7eed50c7208a1b605e6ad04e877a3cbeb7cc3434.zip |
Rely on the injectable type caster for `arel_table`
This API will require much less consuming code to change to accomodate
the removal of automatic type casting from Arel. As long as the
predicates are constructed using the `arel_table` off of an AR subclass,
there will be no changes that need to happen.
Diffstat (limited to 'activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb')
-rw-r--r-- | activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb b/activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb index 57a8b63001..6cec75dc0a 100644 --- a/activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb +++ b/activerecord/lib/active_record/relation/predicate_builder/basic_object_handler.rb @@ -6,7 +6,6 @@ module ActiveRecord end def call(attribute, value) - value = predicate_builder.type_cast_for_database(attribute.name, value) attribute.eq(value) end |