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

uclibs / treatment_database / 2daf393c-fb49-4268-b346-3579b80197f4

25 Oct 2024 05:58PM UTC coverage: 98.675% (+3.3%) from 95.364%
2daf393c-fb49-4268-b346-3579b80197f4

push

circleci

Thomas Scherz
Hotfix for navigation views. (#563)

Co-authored-by: Thomas Scherz <scherztc@ucmail.uc.edu>

100 of 103 branches covered (97.09%)

Branch coverage included in aggregate %.

496 of 501 relevant lines covered (99.0%)

38.65 hits per line

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

100.0
/app/controllers/application_controller.rb
1
# frozen_string_literal: true
2

3
class ApplicationController < ActionController::Base
4✔
4
  include Pagy::Backend
4✔
5
  before_action :configure_permitted_parameters, if: :devise_controller?
4✔
6
  before_action :set_paper_trail_whodunnit
4✔
7

8
  rescue_from CanCan::AccessDenied do |exception|
4✔
9
    flash[:notice] = exception.message
3✔
10
    redirect_to root_url
3✔
11
  end
12

13
  protected
4✔
14

15
  def configure_permitted_parameters
4✔
16
    devise_parameter_sanitizer.permit(:sign_up, keys: [:display_name])
23✔
17
    devise_parameter_sanitizer.permit(:account_update, keys: [:role])
23✔
18
  end
19
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