module ProtectedRecordManager
  class ChangeRequestMailer < ActionMailer::Base
    default from: ProtectedRecordManager::Configuration.default_from

    def notify(user, change_request)
      @user = user
      @url  = change_request_url(change_request)
      mail({
        to:      user.email,
        subject: "New Change Request from #{change_request.user.email}"
      })
    end
  end
end

module ProtectedRecordManager
  class ChangeRequestMailer < ActionMailer::Base
    default from: ProtectedRecordManager::Configuration.default_from

    def notify(users, change_request)
      @url  = change_request_url(change_request)
      mail({
        to:      users.collect(&:email).join(","),
        subject: "New Change Request from #{change_request.user.email}"
      })
    end
  end
end

Send one email to all users (not indiv. email to each user)
Send one email to all users (not indiv. email to each user)
