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

uclibs / ucrate / a6d65dfb-370e-4611-99c9-9be56cbac5d0

05 Sep 2025 07:30PM UTC coverage: 59.35% (-0.2%) from 59.514%
a6d65dfb-370e-4611-99c9-9be56cbac5d0

push

circleci

web-flow
Merge pull request #1184 from uclibs/LIBSCHOLAR-53/analytics

LIBSCHOLAR-53 : Updates Google Analytics ID to version 4.

2301 of 3877 relevant lines covered (59.35%)

267.81 hits per line

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

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

3
require 'hyrax/search_state'
5✔
4

5
class ApplicationController < ActionController::Base
5✔
6
  helper Openseadragon::OpenseadragonHelper
5✔
7
  # Adds a few additional behaviors into the application controller
8
  include Blacklight::Controller
5✔
9
  skip_after_action :discard_flash_if_xhr
5✔
10
  include Hydra::Controller::ControllerBehavior
5✔
11

12
  # Adds Hyrax behaviors into the application controller
13
  include Hyrax::Controller
5✔
14
  include Hyrax::ThemedLayoutController
5✔
15
  with_themed_layout '1_column'
5✔
16
  protect_from_forgery with: :exception
5✔
17

18
  private
5✔
19

20
  # override devise helper and route to CC.new when parameter is set
21
  def after_sign_in_path_for(resource)
5✔
22
    cookies[:login_type] = {
50✔
23
      value: "local",
24
      secure: Rails.env.production?
25
    }
26
    if !resource.waived_welcome_page
50✔
27
      Rails.application.routes.url_helpers.welcome_page_index_path
45✔
28
    else
29
      Rails.application.routes.url_helpers.new_classify_concern_path
5✔
30
    end
31
  end
32

33
  def after_sign_out_path_for(_resource_or_scope)
5✔
34
    if cookies[:login_type] == "shibboleth"
×
35
      "/Shibboleth.sso/Logout?return=https%3A%2F%2F" + ENV['SCHOLAR_SHIBBOLETH_LOGOUT']
×
36
    else
37
      root_path
×
38
    end
39
  end
40

41
  def auth_shib_user!
5✔
42
    redirect_to login_path unless user_signed_in?
15✔
43
  end
44
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