I guess a better idea might be to use it as a block class Model include DataMapper::Resource
property :id, Serial without_auto_validations do property :x, String property :y, String end property :name, String end Any thoughts? On Jan 13, 11:32 pm, Michael Klishin <[email protected]> wrote: > On 14.01.2009, at 1:57, heda wrote: > > > Just wondering if anyone has given any thought to a way to disable all > > auto_validations for a model? It might be handy in alot of > > circumstances rather than putting :auto_validation = false on every > > property. > > Do you have ideas for syntax? Will simple disable_auto_validations! > class method be good enough if added? > > MK --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
