diaspora/app/workers/mail/liked.rb
cmrd Senya ef5751b808
Refactor mail workers to use common base
Introduce Workers::Mail::NotifierBase to be a base for all appropriate
mail workers to reduce code duplication
2016-11-28 15:35:46 +02:00

13 lines
323 B
Ruby

module Workers
module Mail
class Liked < NotifierBase
def perform(*args)
super
rescue ActiveRecord::RecordNotFound => e
logger.warn("failed to send liked notification mail: #{e.message}")
raise e unless e.message.start_with?("Couldn't find Like with")
end
end
end
end