Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
Fixed a bug regarding logical grouping blocks and nested associations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Jun 26, 2008
1 parent 64e7810 commit d21c08d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/squirrel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ def to_find_include
@condition_blocks.inject({}) do |inc, cb|
if cb.reflection.nil?
inc.merge(cb.to_find_include)
inc
else
inc[cb.reflection] ||= {}
inc[cb.reflection] = inc[cb.reflection].merge(cb.to_find_include)
Expand Down

0 comments on commit d21c08d

Please sign in to comment.