Strange behaviour in Rails production mode
===

I have a Rails 3 application based on the Spree e-commerce platform. It sends confirmation emails on different events (powered by the state_machine gem) like order placement, order approval, etc. In development mode everything works fine, but in production mode it sends 2 of the same confirmation emails instead of one, and is some cases 4. What can be the cause of it? 