search for: do_some_error

Displaying 1 result from an estimated 1 matches for "do_some_error".

2006 Jan 10
2
Transactions with multiple databases
hi, i have problem with transactions and multiple databases. Object1 and Object2 are two different models/databases with different connections, when i use only one model: Object1.transaction do object1.value1 = "123456" object1.save do_some_error end it''s ok, error is produced, nothing is commited and database is unchanged. when i use 2 models, described at http://wiki.rubyonrails.com/rails/pages/HowToUseTransactions: Object2.transaction do Object1.transaction do object1.value1 = "123456" object1.save...