1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove references to :bind in except

Bind values are no longer a thing, so this is unnecessary.
This commit is contained in:
Sean Griffin 2015-01-25 16:40:23 -07:00
parent def2879d7d
commit 87726b93d4
2 changed files with 1 additions and 4 deletions

View file

@ -160,7 +160,7 @@ module ActiveRecord
item = eval_scope(reflection.klass, scope_chain_item, owner)
if scope_chain_item == refl.scope
scope.merge! item.except(:where, :includes, :bind)
scope.merge! item.except(:where, :includes)
end
reflection.all_includes do

View file

@ -58,9 +58,6 @@ module ActiveRecord
# Post.order('id asc').only(:where) # discards the order condition
# Post.order('id asc').only(:where, :order) # uses the specified order
def only(*onlies)
if onlies.any? { |o| o == :where }
onlies << :bind
end
relation_with values.slice(*onlies)
end