Class: Workers::Mail::Liked

Inherits:
NotifierBase show all
Defined in:
app/workers/mail/liked.rb

Instance Method Summary collapse

Instance Method Details

#perform(*args) ⇒ Object


6
7
8
9
10
11
# File 'app/workers/mail/liked.rb', line 6

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