The DM 0.9.8 breaks the after you do any operation on the result Array:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
z1 = Zoo.all(:condition.....) | |
z1.to_yaml # this OK | |
z2 = Zoo.all(:condition...) | |
z2.to_yaml # this OK | |
z3 = z1 + z2 | |
z3.to_yaml # bam!. ERROR |
So the workaround could be:
1. Issue only one query to get all you need
or
2. If you can not do 1, then you have to get all the ids, then use (:id.in => ids) to make it working.
Hope this could save you sometime to figure out the very strange error info.
Here is the ticket on light house.
No comments:
Post a Comment