> summary: > > http://drawohara.tumblr.com/post/12411960 > > i am the only one thinking along these terms? > > is there some rationale i'm missing behind the current behaviour?
> ActiveRecord::Base.connection.transaction do > Model.create! > raise > end > # in this case the Model creation is NOT rolled back What do you mean by 'rolling back' model creation. The transaction should definitely be aborted. The database should be left as it was before. If not, you've found a bug for which test cases would be greatly appreciated ;) However the particular model instance probably still thinks that its been saved successfully, @model.new_record? probably returns false, etc. Is that what you mean? -- Cheers Koz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---