Transactions -
11-05-2009
, 09:52 AM
There are many transactions in our project. In some methods I need to
know was transaction success or not . Also I want to catch exceptions
like ActiveRecord::RecordInvalid in one place and not propagate them on
to higher levels of application. How can I done this? I write this
code: http://pastie.org/684694. May be there is another better way to do
this.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~--- |