That syntax is not a new Symbol format, it's a new Hash syntax, where the keys are Symbols. You can't use that with DataMapper, since :staff.gt is not a Symbol itself. You can mix the two syntaxes if you want though.
Il giorno 04/apr/2013, alle ore 11:50, Gus Shotz <[email protected]> ha scritto: > How would I write zoo.all(:population.gte => 100, :staff.gt => 2) using the > newer symbol: format? I was hoping I could do zoo.all(population: >= 100, > staff: > 2) but it doesn't work. > > -- > You received this message because you are subscribed to the Google Groups > "DataMapper" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/datamapper?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/datamapper?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
