linked banned artist listing
This commit is contained in:
@@ -179,8 +179,12 @@ class Artist < ActiveRecord::Base
|
||||
post.delete!
|
||||
end
|
||||
|
||||
tag_implication = TagImplication.create(:antecedent_name => name, :consequent_name => "banned_artist")
|
||||
tag_implication.delay.process!
|
||||
# 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")
|
||||
tag_implication.delay.process!
|
||||
end
|
||||
|
||||
update_column(:is_active, false)
|
||||
update_column(:is_banned, true)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user