Commit 89d164fb authored by Stan Hu's avatar Stan Hu

Fix Rubocop complaint about update_attributes

parent fe16ce0a
...@@ -218,7 +218,7 @@ module Gitlab ...@@ -218,7 +218,7 @@ module Gitlab
user_id = gitlab_user_id(committer) user_id = gitlab_user_id(committer)
timestamp = merge_event.merge_timestamp timestamp = merge_event.merge_timestamp
merge_request.update_attributes({ merge_commit_sha: merge_event.merge_commit }) merge_request.update({ merge_commit_sha: merge_event.merge_commit })
metric = MergeRequest::Metrics.find_or_initialize_by(merge_request: merge_request) metric = MergeRequest::Metrics.find_or_initialize_by(merge_request: merge_request)
metric.update(merged_by_id: user_id, merged_at: timestamp) metric.update(merged_by_id: user_id, merged_at: timestamp)
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