I have a Project that has three arrays:
adminsmembersreaders
I want to email the various users in each of those arrays. Am currently doing it like:
@project.admins.each do |u|
ProjelementMailer.notify_update(u)
end
@project.members.each do |u|
ProjelementMailer.notify_update(u)
end
@project.readers.each do |u|
ProjelementMailer.notify_update(u)
end
Is there a more DRY Rails approach that lets me express this in a more concise way?