gitlab-org--gitlab-foss/app/controllers
Douwe Maan d5c715c9cc Merge branch 'lock_for_issuable' into 'master'
Optimistic locking for Issue and Merge Requests

## What does this MR do?

It implements Optimistic Locking http://api.rubyonrails.org/classes/ActiveRecord/Locking/Optimistic.html for Issues and MRs but in a bit custom way. We use it for cases when either title or description field is involved in the change.

## Why was this MR needed?

We have to prevent data losing.

## What are the relevant issue numbers?
https://gitlab.com/gitlab-org/gitlab-ce/issues/12940

## Screenshots (if relevant)

![Screen_Shot_2016-07-09_at_15.33.02](/uploads/2efbe547a12fda93bce347fa711438d7/Screen_Shot_2016-07-09_at_15.33.02.png)


See merge request !5146
2016-07-12 17:52:51 +00:00
..
admin
ci
concerns
dashboard
explore
groups
import
oauth
profiles
projects
sherlock
abuse_reports_controller.rb
application_controller.rb
autocomplete_controller.rb
confirmations_controller.rb
dashboard_controller.rb
emojis_controller.rb
groups_controller.rb
health_check_controller.rb
help_controller.rb
invites_controller.rb
jwt_controller.rb
namespaces_controller.rb
notification_settings_controller.rb
omniauth_callbacks_controller.rb
passwords_controller.rb
profiles_controller.rb
projects_controller.rb
registrations_controller.rb
root_controller.rb
search_controller.rb
sent_notifications_controller.rb
sessions_controller.rb
snippets_controller.rb
uploads_controller.rb
users_controller.rb