On Dec 31, 1:03 am, Chris Corbyn <[email protected]> wrote: > A couple of things. > > 1. Do you definitely have dm-aggregates included?
yes, its required and I can use the count, max, etc methods on the associations outside the all() method > 2. Shouldn't the second condition be lt, not gt? > > all(:max_user.gt => 0, :max_user.gt => Feature.runtime_features.count()) yes, that's correct but does not solve the problem. I think I changed it during debugging to test if the syntax is correct. I also tried "Feature.runtime_features.count.lt => :max_user" which also did not work. Complain was about that count return value (BigInteger) does not support the "lt" method. Any other ideas? Phil -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
