spree/spree — pull request #5523 by DangerDawson (2014-10-24 06:52:55+00:00)
Title: Refactor the duplicate request prevention code ( order.with_lock )

- break the lock code out into a seperate callback
- ensure it only operates on an update
- add specs