Skip to content

Commit

Permalink
added clone to the scoped relation (just in case of caching somewhere…
Browse files Browse the repository at this point in the history
… sometime) [#835]
  • Loading branch information
ddnexus committed Oct 26, 2010
1 parent 5c190e8 commit dfba415
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Associations
class AssociationCollection

def scoped_with_origin
relation = scoped_without_origin
relation = scoped_without_origin.clone
relation.origin = @owner
relation.origin_attribute = @reflection.name
relation
Expand Down

0 comments on commit dfba415

Please sign in to comment.