So you say that there're no validation groups no more? No shortcuts? That seems like a big downgrade for me.
On Jan 18, 7:44 pm, Sharon Rosner <[EMAIL PROTECTED]> wrote: > A new release of sequel_model is out. here are the changes: > > * New validations - validations are now implemented in a way much > closer to ActiveRecord validations. The new implementation also > supports detailed error reporting for those who need it: > > class User < Sequel::Model(:users) > validates_length_of :password, :minimum => 8 > end > > u = User.new(:password => 'blah') > u.valid? #=> false > u.errors.on(:password) #=> ['is too short'] > u.errors[:password] #=> ['is too short'] > u.errors.full_messages #=> ['password is too short'] > > * Added Model#reload as alias to Model#refresh. > > * Model.create can now accept a block (#126), e.g.: > > User.create do > name = 'jim' > password = '12345' > end > > * Fixed Model#initialize to accept nil values (#115). > > ======================================= > > I have a question regarding version numbers for the different parts of > sequel: right now each gem has its own version and to me it seems a > bit weird. Should we use the same version number for the three gems, > or is it OK to keep it as it is? > > best > Sharon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" 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/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
