diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-05-31 13:47:36 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-05-31 14:03:37 +0200 |
commit | cd74c1434e42f7e6aa12fe2e2b8d9b1e56aea78f (patch) | |
tree | 2eee709fcc756fde8a597c3079c1bf471788ed76 /app/models/hooks | |
parent | 3d160480c07cd967480716d7cfbe332dfc53507e (diff) | |
download | gitlab-ce-cd74c1434e42f7e6aa12fe2e2b8d9b1e56aea78f.tar.gz |
Added Cop to blacklist the use of serializedocument-not-using-serialize
This Cop blacklists the use of ActiveRecord's "serialize" method, except
for cases where we already use this.
Diffstat (limited to 'app/models/hooks')
-rw-r--r-- | app/models/hooks/web_hook_log.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/hooks/web_hook_log.rb b/app/models/hooks/web_hook_log.rb index 2738b229d84..d73cfcf630d 100644 --- a/app/models/hooks/web_hook_log.rb +++ b/app/models/hooks/web_hook_log.rb @@ -1,9 +1,9 @@ class WebHookLog < ActiveRecord::Base belongs_to :web_hook - serialize :request_headers, Hash - serialize :request_data, Hash - serialize :response_headers, Hash + serialize :request_headers, Hash # rubocop:disable Cop/ActiverecordSerialize + serialize :request_data, Hash # rubocop:disable Cop/ActiverecordSerialize + serialize :response_headers, Hash # rubocop:disable Cop/ActiverecordSerialize validates :web_hook, presence: true |