Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def enqueue(job)
- if doc.cached_recipients.empty? && !recipients.empty?
- recipients.each do |person|
- doc.cached_recipients.build(:recipient_class => person.class.to_s,:recipient_id => person.id, :email => person.email)
- end
- doc.save
- end
- end
Add Comment
Please, Sign In to add comment