> 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).

Sharon,

The new release is great!  I've been playing around with it and
everything works fine although a create! method would be a great
addition.

Best,

Zack

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to