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

pulibrary / bibdata / aa977bbb-cb49-44c2-84c5-66aa8ea1e89a

05 Mar 2026 04:37PM UTC coverage: 68.266% (-22.0%) from 90.235%
aa977bbb-cb49-44c2-84c5-66aa8ea1e89a

Pull #3059

circleci

sandbergja
Remove orangetheses

Closes #2816
Pull Request #3059: Remove orangetheses

7015 of 10276 relevant lines covered (68.27%)

12.91 hits per line

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

29.17
/app/controllers/application_controller.rb
1
class ApplicationController < ActionController::Base
1✔
2
  # Prevent CSRF attacks by raising an exception.
3
  # For APIs, you may want to use :null_session instead.
4
  protect_from_forgery with: :exception
1✔
5
  include ApplicationHelper
1✔
6

7
  def after_sign_out_path_for(_resource_or_scope)
1✔
8
    request.referer
×
9
  end
10

11
  def handle_alma_exception(exception:, message:)
1✔
12
    if exception.is_a?(Alma::PerSecondThresholdError)
×
13
      Rails.logger.error "HTTP 429. #{message} #{exception}"
×
14
      head :too_many_requests
×
15
    elsif exception.is_a?(Alma::NotFoundError)
×
16
      Rails.logger.error "HTTP 404. #{message} #{exception}"
×
17
      head :not_found
×
18
    elsif exception.is_a?(Alma::StandardError)
×
19
      Rails.logger.error "HTTP 400. #{message} #{exception}"
×
20
      head :bad_request
×
21
    elsif exception.is_a?(Net::ReadTimeout)
×
22
      Rails.logger.error "HTTP 504. #{message} #{exception}"
×
23
      head :gateway_timeout
×
24
    else
25
      Rails.logger.error "HTTP 500. #{message} #{exception}"
×
26
      head :internal_server_error
×
27
    end
28
  end
29

30
  private
1✔
31

32
    def verify_admin!
1✔
33
      authenticate_user!
×
34
      head :forbidden unless current_user.catalog_admin?
×
35
    end
36
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

© 2026 Coveralls, Inc