Does anyone have an idea in what conditions the below error could happen? I''ve got it in logs, but I don''t know how to reproduce it. bogdan Transaction::TransactionError (Transaction Error: Cannot abort. There is no current transaction.): /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/vendor/simple.rb:268:in `abort_transaction'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:98:in `transaction'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:98:in `each'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/transactions.rb:98:in `transaction'' /app/models/player.rb:165:in `buy_standard_eq_from_market'' _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I have something like:
item_cnt.times {
stuff1()
Player.transaction(self) do
stuff2()
end
}
This used to work just fine, and it still does on a different computer.
However all of a sudden it stopped working on the production computer.
It works fine if item_cnt.length==1, but if it''s greater than 1, on the
second iteration it returns that error, before it even attempts to execute
stuff2
Ideas, anyone?
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails