public
Description: Natural-looking Finder Queries for ActiveRecord
Homepage: http://www.thoughtbot.com/projects/squirrel
Clone URL: git://github.com/thoughtbot/squirrel.git
Fixed a bug regarding logical grouping blocks and nested associations.
jyurek (author)
Thu Jun 26 10:16:41 -0700 2008
commit  d21c08dfb1e89ce657aeeebdaa96bdfdc500b33b
tree    978d4e472ec291a4ee27084a538da403efd5cafc
parent  64e78106dee656103cf3db8f17eeb8b399b31a08
...
322
323
324
 
325
326
327
...
322
323
324
325
326
327
328
0
@@ -322,6 +322,7 @@ module Squirrel
0
         @condition_blocks.inject({}) do |inc, cb|
0
           if cb.reflection.nil?
0
             inc.merge(cb.to_find_include)
0
+ inc
0
           else
0
             inc[cb.reflection] ||= {}
0
             inc[cb.reflection] = inc[cb.reflection].merge(cb.to_find_include)

Comments

    No one has commented yet.