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

pulibrary / orangelight / 00dbc10b-d747-4ad7-b211-7b26d753abbb

14 Aug 2025 01:25PM UTC coverage: 0.483% (-94.9%) from 95.343%
00dbc10b-d747-4ad7-b211-7b26d753abbb

push

circleci

web-flow
Merge pull request #5181 from pulibrary/dependabot/bundler/activestorage-7.2.2.2

Bump activestorage from 7.2.2.1 to 7.2.2.2

47 of 9721 relevant lines covered (0.48%)

0.01 hits per line

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

0.0
/app/forms/report_biased_results_form.rb
1
# frozen_string_literal: true
2
class ReportBiasedResultsForm
×
3
  include ActiveModel::Model
×
4
  include Honeypot
×
5
  attr_accessor :name, :email, :message, :context
×
6

7
  validates :message, presence: true
×
8

9
  def email_subject
×
10
    "[Possible Biased Results]"
×
11
  end
×
12

13
  def submit
×
14
    ContactMailer.with(form: self).biased_results.deliver unless spam?
×
15
    @submitted = true
×
16
    @name = ""
×
17
    @email = ""
×
18
    @message = ""
×
19
  end
×
20

21
  def submitted?
×
22
    @submitted == true
×
23
  end
×
24

25
  def routed_mail_to
×
26
    Orangelight.config["report_biased_results_form"]["to"]
×
27
  end
×
28

29
  # If the form does not include an email, use the routed_mail_to email for the "from" field
30
  def from_email
×
31
    @from_email ||= @email.presence || routed_mail_to
×
32
  end
×
33
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