I have 4 models mucking with each other Image, Status, Imagestatus and Action. You should be able to see the sense in these models. I am using the Imagestatus model as the `:through` for the Image<>Status relationship. So I want an Action created every time that an Imagestatus record is saved. Here is the code for the Imagestatus and Action models:
https://gist.github.com/c8963eb4f57fa749444a The hook is in the Imagestatus model. The problem is it does not always fire. Is there just something wrong with my code or does DM not run the hook in a situation like this? - Ian ---------------------- Ian Sheridan http://iansheridan.dyndns.org ---------------------- -- 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.