app/mailers/newsletter_mailer.rb
# Generates a mailing message signaling a "data update" to a user.
#
# == Params:
#
# - user: the current_user instance
# - meeting_array: when not nil, is assumed to be an array of Meeting rows for which the results have been updated
#   (No checks are made here to make sure that is actually the case or if its a random collection of Meetings)
#
Generates a mailing message signaling a "data update" to a user.
Params.

the current_user instance
meeting_array: when not nil, is assumed to be an array of Meeting rows for which the results have been updated
(No checks are made here to make sure that is actually the case or if its a random collection of Meetings)
Generates a mailing message signaling a " data update " to a user . Params . the current_user instance meeting_array : when not nil is assumed to be an array of Meeting rows for which the results have been updated ( No checks are made here to make sure that is actually the case or if its a random collection of Meetings )
def data_updates_mail( user, meeting_array = nil )
    @user  = user
    @host = GogglesCore::AppConstants::WEB_MAIN_DOMAIN_NAME
    @meeting_array = meeting_array
    mail(
      subject: "[#{GogglesCore::AppConstants::WEB_APP_NAME}@#{@host}] #{I18n.t('newsletter_mailer.data_updates.generic_title')}",
      to:      user.email,
      date:    Time.now
    )
  end
def data_updates_mail ( user , meeting_array = nil ) @user = user @host = GogglesCore :: AppConstants :: WEB_MAIN_DOMAIN_NAME @meeting_array = meeting_array mail ( subject : "[#{GogglesCore::AppConstants::WEB_APP_NAME}@#{@host}] #{I18n.t('newsletter_mailer.data_updates.generic_title')}" , to : user . email , date : Time . now ) end
Generates a mailing message signaling a "data update" to a user.
Generates a mailing message signaling a " data update " to a user .
user
<not_specific>
meeting_array
<not_specific>