fixes #2185
This commit is contained in:
@@ -31,6 +31,8 @@ private
|
|||||||
[:remove_alias, $1, $2]
|
[:remove_alias, $1, $2]
|
||||||
elsif line =~ /^remove implication (\S+) -> (\S+)$/i
|
elsif line =~ /^remove implication (\S+) -> (\S+)$/i
|
||||||
[:remove_implication, $1, $2]
|
[:remove_implication, $1, $2]
|
||||||
|
elsif line =~ /^mass update (\S+) -> (\S+)$/i
|
||||||
|
[:mass_update, $1, $2]
|
||||||
elsif line.empty?
|
elsif line.empty?
|
||||||
# do nothing
|
# do nothing
|
||||||
else
|
else
|
||||||
@@ -62,6 +64,9 @@ private
|
|||||||
raise "Implication for #{token[1]} not found" if tag_implication.nil?
|
raise "Implication for #{token[1]} not found" if tag_implication.nil?
|
||||||
tag_implication.destroy
|
tag_implication.destroy
|
||||||
|
|
||||||
|
when :mass_update
|
||||||
|
Delayed::Job.enqueue(TagBatchChange.new(token[1], token[2], CurrentUser.user, CurrentUser.ip_addr))
|
||||||
|
|
||||||
else
|
else
|
||||||
raise "Unknown token: #{token[0]}"
|
raise "Unknown token: #{token[0]}"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user