Dan, > Yeah, I designed the "bang == unsafe" behavior in DM to match more > closely how ruby core/stdlib libraries were designed: > > http://dablog.rubypal.com/2007/8/15/bang-methods-or-danger-will-rubyist
Thanks for the reference. That'll change the way I wrote code for sure. Nice! > I've been thinking about this for some time, and I wonder if perhaps > the approach Sequel uses for this might be better. I believe they > have a global, per-model, and per-resource method like > "raise_on_save_failure" that they can set to true/false, and when true > it will cause any save failures to raise an exception. +1 > then we'd decide whether to turn it on or off by default. +0 I don't mind if it's always off by default. I'll just always turn it on :) Thanks for the continued great work. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
