I find myself wanting to do things like this fairly often, particularly for things like bans:
has 1, :boardban, :child_key => [:target_id] # can we add things to this? like :until => now()? Is there any way to add to the association requiring that the 'until' property be > now? Time.now works to pass in at most places, but thought I'd check if there was a way to pass in the sql-function 'now'. In general I've always been a (strange) lover of SQL, which has been a sometimes frustration with moving to DM and its lack of allowance for that. For instance, there doesn't seem to be any way to include force_index(blah) if it becomes necessary. Thanks, Kevin -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamap...@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.