aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/predicate_builder.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-12-29 10:57:15 -0700
committerSean Griffin <sean@thoughtbot.com>2014-12-29 10:57:15 -0700
commit7eed50c7208a1b605e6ad04e877a3cbeb7cc3434 (patch)
treebcbe210ff724e4e5255545a9245a1d759cf4e1a8 /activerecord/lib/active_record/relation/predicate_builder.rb
parent266ff700011dfcc4b76a7332bbfa64d9419c10bc (diff)
downloadrails-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.rb')
-rw-r--r--activerecord/lib/active_record/relation/predicate_builder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/predicate_builder.rb b/activerecord/lib/active_record/relation/predicate_builder.rb
index ad8dddb9a4..567efce8ae 100644
--- a/activerecord/lib/active_record/relation/predicate_builder.rb
+++ b/activerecord/lib/active_record/relation/predicate_builder.rb
@@ -8,7 +8,7 @@ module ActiveRecord
require 'active_record/relation/predicate_builder/range_handler'
require 'active_record/relation/predicate_builder/relation_handler'
- delegate :resolve_column_aliases, :type_cast_for_database, to: :table
+ delegate :resolve_column_aliases, to: :table
def initialize(table)
@table = table