From 83cca4a382f12b8509708efa137e4792d882d2c2 Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 23 Aug 2018 15:24:57 -0500 Subject: [PATCH] PostDisapproval: fix duplicate initialize_attributes definition. --- app/models/post_disapproval.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/post_disapproval.rb b/app/models/post_disapproval.rb index 91ed364a9..4141abd4e 100644 --- a/app/models/post_disapproval.rb +++ b/app/models/post_disapproval.rb @@ -16,10 +16,6 @@ class PostDisapproval < ApplicationRecord self.user_id ||= CurrentUser.user.id end - def initialize_attributes - self.user_id ||= CurrentUser.user.id - end - def self.prune! PostDisapproval.where("post_id in (select _.post_id from post_disapprovals _ where _.created_at < ?)", DELETION_THRESHOLD.ago).delete_all end