lib/seek/publishing/publishing_common.rb
# recipients can be :gatekeepers or :managers
recipients can be :gatekeepers or :managers
recipients can be : gatekeepers or : managers
def deliver_publishing_notification_emails(recipients, items, delivery_method)
        if Seek::Config.email_enabled
          recipient_items = gather_recipients_for_items(items, recipients)
          recipient_items.keys.each do |recipient|
            begin
              Mailer.send(delivery_method, recipient, User.current_user.person, recipient_items[recipient]).deliver
            rescue Exception => e
              Rails.logger.error("Error sending notification email to the owner #{gatekeeper.name} - #{e.message}")
            end
          end
        end
      end
def deliver_publishing_notification_emails ( recipients , items , delivery_method ) if Seek :: Config . email_enabled recipient_items = gather_recipients_for_items ( items , recipients ) recipient_items . keys . each do | recipient | begin Mailer . send ( delivery_method , recipient , User . current_user . person , recipient_items [ recipient ] ) . deliver rescue Exception => e Rails . logger . error ( "Error sending notification email to the owner #{gatekeeper.name} - #{e.message}" ) end end end end
recipients can be :gatekeepers or :managers
recipients can be : gatekeepers or : managers
recipients
items
delivery_method