• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / pdc_describe / 9dbcf7a4-1c56-4510-9614-74ad5a22cff6

31 Jul 2024 02:46PM UTC coverage: 1.08% (-95.1%) from 96.17%
9dbcf7a4-1c56-4510-9614-74ad5a22cff6

push

circleci

jrgriffiniii
wip

52 of 4814 relevant lines covered (1.08%)

0.01 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/mailers/notification_mailer.rb
1
# frozen_string_literal: true
2
class NotificationMailer < ApplicationMailer
×
3
  include Rails.application.routes.url_helpers
×
4

5
  def build_message
×
6
    @user = params[:user]
×
7
    @work_activity = params[:work_activity]
×
8

9
    @subject = "[pdc-describe] New Notification"
×
10
    @message = @work_activity.message
×
11
    @message_html = @work_activity.to_html
×
12
    @url = work_url(@work_activity.work)
×
13

14
    # Troubleshooting https://github.com/pulibrary/pdc_describe/issues/1783
15
    if @url.include?("/describe/describe/")
×
16
      Rails.logger.error("URL #{@url} included /describe/describe/ and was fixed. See https://github.com/pulibrary/pdc_describe/issues/1783")
×
17
      @url = @url.gsub("/describe/describe/", "/describe/")
×
18
    end
×
19

20
    mail(to: @user.email, subject: @subject)
×
21
  end
×
22
end
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc