1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/relation
Sean Griffin d26dd00854 WhereClause#predicates does not need to be public
The only place it was accessed was in tests. Many of them have another
way that they can test their behavior, that doesn't involve reaching
into internals as far as they did. `AssociationScopeTest` is testing a
situation where the where clause would have one bind param per
predicate, so it can just ignore the predicates entirely. The where
chain test was primarly duplicating the logic tested on `WhereClause`
directly, so I instead just make sure it calls the appropriate method
which is fully tested in isolation.
2015-01-27 10:30:38 -07:00
..
predicate_builder
batches.rb
calculations.rb Unify access to bind values on Relation 2015-01-27 09:18:30 -07:00
delegation.rb
finder_methods.rb Unify access to bind values on Relation 2015-01-27 09:18:30 -07:00
from_clause.rb Unify access to bind values on Relation 2015-01-27 09:18:30 -07:00
merger.rb Move the from bind logic to a FromClause class 2015-01-26 16:36:14 -07:00
predicate_builder.rb Unify access to bind values on Relation 2015-01-27 09:18:30 -07:00
query_methods.rb Use the WhereClause ast building logic for having 2015-01-27 10:03:25 -07:00
spawn_methods.rb Remove references to :bind in except 2015-01-25 16:40:23 -07:00
where_clause.rb WhereClause#predicates does not need to be public 2015-01-27 10:30:38 -07:00
where_clause_factory.rb Move the construction of WhereClause objects out of Relation 2015-01-25 16:53:46 -07:00