summaryrefslogtreecommitdiff
path: root/app/models/merge_request.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-06-01 13:06:30 +0000
committerDouwe Maan <douwe@gitlab.com>2017-06-01 13:06:30 +0000
commit483d88a9cdc8dc8f699b962c206eaa007aa370ef (patch)
treefed5d381bce05e823eb45d7d499c592122f39581 /app/models/merge_request.rb
parentc72abcefe79dd906cbbf0088b442a8979e9fc746 (diff)
parentcd74c1434e42f7e6aa12fe2e2b8d9b1e56aea78f (diff)
downloadgitlab-ce-483d88a9cdc8dc8f699b962c206eaa007aa370ef.tar.gz
Merge branch 'document-not-using-serialize' into 'master'
Document not using ActiveRecord's serialize method See merge request !11821
Diffstat (limited to 'app/models/merge_request.rb')
-rw-r--r--app/models/merge_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb
index 56fec3ca39c..4bccda8a732 100644
--- a/app/models/merge_request.rb
+++ b/app/models/merge_request.rb
@@ -21,7 +21,7 @@ class MergeRequest < ActiveRecord::Base
belongs_to :assignee, class_name: "User"
- serialize :merge_params, Hash
+ serialize :merge_params, Hash # rubocop:disable Cop/ActiverecordSerialize
after_create :ensure_merge_request_diff, unless: :importing?
after_update :reload_diff_if_branch_changed