diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-05-31 14:47:36 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-05-31 15:03:37 +0300 |
commit | cd74c1434e42f7e6aa12fe2e2b8d9b1e56aea78f (patch) | |
tree | 2eee709fcc756fde8a597c3079c1bf471788ed76 /app/models/event.rb | |
parent | 3d160480c07cd967480716d7cfbe332dfc53507e (diff) |
Added Cop to blacklist the use of serialize
This Cop blacklists the use of ActiveRecord's "serialize" method, except
for cases where we already use this.
Diffstat (limited to 'app/models/event.rb')
-rw-r--r-- | app/models/event.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/event.rb b/app/models/event.rb index e6fad46077a..46e89388bc1 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -26,7 +26,7 @@ class Event < ActiveRecord::Base belongs_to :target, polymorphic: true # For Hash only - serialize :data + serialize :data # rubocop:disable Cop/ActiverecordSerialize # Callbacks after_create :reset_project_activity |