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

pulibrary / pdc_describe / 9091a1ae-29be-458c-984a-339d213919c4

12 Dec 2024 07:41PM UTC coverage: 26.434% (-69.7%) from 96.113%
9091a1ae-29be-458c-984a-339d213919c4

Pull #2000

circleci

jrgriffiniii
Removing integration with ActiveStorage
Pull Request #2000: Bump actionpack from 7.2.1.1 to 7.2.2.1

945 of 3575 relevant lines covered (26.43%)

0.35 hits per line

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

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

5
  def build_message
1✔
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