Skip to content

Commit

Permalink
use deliver_later
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Aug 19, 2015
1 parent 7d1adce commit b30b929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def set_receiver
end

def send_notification
Notifier.message_notification(id).deliver if receiver.try(:email).present?
Notifier.message_notification(id).deliver_later if receiver.try(:email).present?
end

def read
Expand Down

0 comments on commit b30b929

Please sign in to comment.