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

pulibrary / bibdata / bbca3095-7c5c-4841-9d00-4419bd3c04cb

11 Sep 2023 11:46AM UTC coverage: 91.287% (-0.2%) from 91.506%
bbca3095-7c5c-4841-9d00-4419bd3c04cb

push

circleci

web-flow
Upgrade to Rails 7 (#2245)

* Override devise method via custom controller, rather than class_eval

Per documentation here: https://github.com/heartcombo/devise#configuring-controllers

* Rails 7

* Autoload LocationMapsGeneratorService for use at boot-time by the traject initializer

See https://guides.rubyonrails.org/v6.1.0/autoloading_and_reloading_constants.html#autoloading-when-the-application-boots

* Make signout message translateable

* Use terser, not uglifier

9 of 9 new or added lines in 1 file covered. (100.0%)

3426 of 3753 relevant lines covered (91.29%)

334.68 hits per line

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

0.0
/app/controllers/users/sessions_controller.rb
1
# frozen_string_literal: true
2

3
class Users::SessionsController < Devise::SessionsController
×
4
  def destroy
×
5
    signed_out = (Devise.sign_out_all_scopes ? sign_out : sign_out(resource_name))
×
6
    flash[:alert] = I18n.t('users.signout_html')
×
7
    set_flash_message :notice, :signed_out if signed_out && is_flashing_format?
×
8
    yield if block_given?
×
9
    respond_to_on_destroy
×
10
  end
×
11
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