Commit 5c3316c2 authored by blackst0ne's avatar blackst0ne

[Rails5] Update active_record_locking initializer

parent 5ae91f32
# rubocop:disable Lint/RescueException
# This patch fixes https://github.com/rails/rails/issues/26024
# TODO: Remove it when it's no longer necessary
# Remove this entire initializer when we are at rails 5.0.
# This file fixes the bug (see below) which has been fixed in the upstream.
unless Gitlab.rails5?
# This patch fixes https://github.com/rails/rails/issues/26024
# TODO: Remove it when it's no longer necessary
module ActiveRecord
module ActiveRecord
module Locking
module Optimistic
# We overwrite this method because we don't want to have default value
......@@ -71,4 +74,5 @@ module ActiveRecord
end
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment