Is somebody having the same issue?
Sequel does not change the object in memory back to its previous state, the
user record didn't get stored in the db.
Sequel:
u = User.new
u.new? # true
u.id # nil
Sequel::Model.db.transaction { u.save; raise Sequel::Rollback }
u.new? # false
u.id # 1
ActiveRecord:
u = User.new
u.persisted? # false
u.id # nil
ActiveRecord::Base.transaction { u.save; raise ActiveRecord::Rollback }
u.persisted? # false
u.id # nil
Thanks,
Santiago
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.