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

uclibs / ucrate / b55db03c-843f-45a9-98b3-f75772ac783c

16 Apr 2025 05:43PM UTC coverage: 54.567% (-19.5%) from 74.06%
b55db03c-843f-45a9-98b3-f75772ac783c

push

circleci

web-flow
Add github workflow to trigger Teams webhook to notify for PR (#1179)

2103 of 3854 relevant lines covered (54.57%)

42.87 hits per line

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

52.63
/app/controllers/classify_concerns_controller.rb
1
# frozen_string_literal: true
2
class ClassifyConcernsController < ApplicationController
1✔
3
  include Hyrax::ThemedLayoutController
1✔
4
  with_themed_layout '1_column'
1✔
5
  before_action :auth_shib_user!
1✔
6
  load_and_authorize_resource
1✔
7

8
  add_breadcrumb 'Submit a work', (->(controller) { controller.request.path })
11✔
9

10
  attr_reader :classify_concern
1✔
11
  helper_method :classify_concern
1✔
12

13
  def new; end
1✔
14

15
  def create
1✔
16
    classify_concern.attributes = params[:classify_concern]
×
17
    if classify_concern.valid?
×
18
      respond_to do |wants|
×
19
        wants.html do
×
20
          redirect_to new_polymorphic_path(
×
21
            [:curation_concerns, classify_concern.curation_concern_class]
22
          )
23
        end
24
        wants.json { render_json_response(response_type: :created, options: { location: polymorphic_path([main_app, :curation_concerns, curation_concern]) }) }
×
25
      end
26
    else
27
      respond_to do |wants|
×
28
        wants.html { render 'new', status: :unprocessable_entity }
×
29
        wants.json { render_json_response(response_type: :unprocessable_entity, message: curation_concern.errors.messages) }
×
30
      end
31
    end
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