Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

scope is always a Relation

  • Loading branch information...
commit 451ad38bb2eafbaff48697f6d38f27cbc9cc6e9e 1 parent c2aca3d
@spastorino spastorino authored
View
4 activerecord/lib/active_record/associations/association_proxy.rb
@@ -188,9 +188,7 @@ def association_scope
if select = select_value
scope = scope.select(select)
end
- if Relation === scope
- scope = scope.extending(*Array.wrap(@reflection.options[:extend]))
- end
+ scope = scope.extending(*Array.wrap(@reflection.options[:extend]))
scope.where(construct_owner_conditions)
end
Please sign in to comment.
Something went wrong with that request. Please try again.