Improved, automated handling of Rails' optimistic locking feature.