From e67194c19d01b8ebb216fe60c8844850237b2a2a Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 26 Oct 2016 18:50:49 -0500 Subject: [PATCH] Set approver when creating banned_artist implication. --- app/models/artist.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/artist.rb b/app/models/artist.rb index 3727a2fee..911e1b88f 100644 --- a/app/models/artist.rb +++ b/app/models/artist.rb @@ -318,7 +318,7 @@ class Artist < ActiveRecord::Base # potential race condition but unlikely unless TagImplication.where(:antecedent_name => name, :consequent_name => "banned_artist").exists? tag_implication = TagImplication.create!(:antecedent_name => name, :consequent_name => "banned_artist", :skip_secondary_validations => true, :status => "pending") - tag_implication.delay(:queue => "default").process! + tag_implication.approve!(CurrentUser.user) end update_column(:is_banned, true)