diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-01-26 15:55:22 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-01-26 15:55:22 -0700 |
commit | 76661dc64f843085102070a650d426e155fc9a8e (patch) | |
tree | 63a8153e5959a7de50a451839a98875d0a857e5d /activerecord/lib/active_record/relation | |
parent | 6a7ac40dabf4a8948418c61f307ffe52ddcb48f2 (diff) | |
download | rails-76661dc64f843085102070a650d426e155fc9a8e.tar.gz rails-76661dc64f843085102070a650d426e155fc9a8e.tar.bz2 rails-76661dc64f843085102070a650d426e155fc9a8e.zip |
Remove `Relation#build_where`
All of its uses have been moved to better places
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 9e72dd319e..2d6c167c69 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -937,12 +937,6 @@ module ActiveRecord arel.where(Arel::Nodes::And.new(predicates)) if predicates.present? end - def build_where(opts, other = []) - where_clause = where_clause_factory.build(opts, other) - self.bind_values += where_clause.binds - where_clause.predicates - end - def association_for_table(table_name) table_name = table_name.to_s @klass._reflect_on_association(table_name) || |