aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-01-26 15:55:22 -0700
committerSean Griffin <sean@thoughtbot.com>2015-01-26 15:55:22 -0700
commit76661dc64f843085102070a650d426e155fc9a8e (patch)
tree63a8153e5959a7de50a451839a98875d0a857e5d /activerecord/lib/active_record/relation
parent6a7ac40dabf4a8948418c61f307ffe52ddcb48f2 (diff)
downloadrails-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.rb6
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) ||