Do not fail upon missing users in Message#recipients.

This commit is contained in:
Benjamin Meichsner 2015-06-07 19:05:54 +02:00
parent b07e855235
commit af8a035994

View file

@ -68,7 +68,7 @@ class Message < ActiveRecord::Base
end
def recipients
User.find(recipients_ids)
User.where(id: recipients_ids)
end
def deliver