• 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/controllers/contact_controller.rb
1
# frozen_string_literal: true
2
class ContactController < ApplicationController
×
3
  def question
×
4
    @form = AskAQuestionForm.new(question_params)
×
5
    if @form.valid? && @form.submit
×
6
      flash[:success] = 'Your question has been submitted'
×
7

8
      render "question_success"
×
9
    else
×
10
      render partial: "catalog/ask_a_question_form", locals: { form: @form }, status: :unprocessable_entity
×
11
    end
×
12
  end
×
13

14
  def suggestion
×
15
    @form = SuggestCorrectionForm.new(suggestion_params)
×
16
    if @form.valid? && @form.submit
×
17
      flash[:success] = 'Your suggestion has been submitted'
×
18

19
      render "suggestion_success"
×
20
    else
×
21
      render partial: "catalog/suggest_correction_form", locals: { form: @form }, status: :unprocessable_entity
×
22
    end
×
23
  end
×
24

25
  def report_biased_results
×
26
    @form = ReportBiasedResultsForm.new(report_biased_results_params)
×
27
    if @form.valid? && @form.submit
×
28
      flash[:success] = 'Your report has been submitted'
×
29

30
      render "report_biased_results_success"
×
31
    else
×
32
      render partial: "catalog/report_biased_results_form", locals: { form: @form }, status: :unprocessable_entity
×
33
    end
×
34
  end
×
35

36
  private
×
37

38
    def question_params
×
39
      params[:ask_a_question_form].permit!
×
40
    end
×
41

42
    def suggestion_params
×
43
      params[:suggest_correction_form].permit!
×
44
    end
×
45

46
    def report_biased_results_params
×
47
      params[:report_biased_results_form].permit!
×
48
    end
×
49
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