app/models/emailer.rb
# Send the user an email saying the bulk observation import encountered
# an error.
Send the user an email saying the bulk observation import encountered
an error.
Send the user an email saying the bulk observation import encountered an error .
def bulk_observation_error(user, filename, error_details)
    @user = user
    @subject = "#{subject_prefix} #{t :were_sorry_but_your_bulk_import_of_filename_has_failed, :filename => filename}"
    @message       = error_details[:reason]
    @errors        = error_details[:errors]
    @field_options = error_details[:field_options]
    mail(set_site_specific_opts.merge(
      :to => "#{user.name} <#{user.email}>", :subject => @subject
    ))
  end
def bulk_observation_error ( user , filename , error_details ) @user = user @subject = "#{subject_prefix} #{t :were_sorry_but_your_bulk_import_of_filename_has_failed, :filename => filename}" @message = error_details [ :reason ] @errors = error_details [ :errors ] @field_options = error_details [ :field_options ] mail ( set_site_specific_opts . merge ( :to => "#{user.name} <#{user.email}>" , :subject => @subject ) ) end
Send the user an email saying the bulk observation import encountered
an error.
Send the user an email saying the bulk observation import encountered an error .
user
filename
error_details