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

uclibs / treatment_database / 748196b0-9e57-4d85-bd7d-17acb688af1a

22 Jan 2025 09:39PM UTC coverage: 99.536%. Remained the same
748196b0-9e57-4d85-bd7d-17acb688af1a

push

circleci

Janell-Huyck
Restore qa deploy branch to qa

644 of 647 relevant lines covered (99.54%)

52.64 hits per line

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

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

3
# Manages user profile actions, allowing users to view and update their own profile.
4
class UsersController < ApplicationController
3✔
5
  before_action :set_user
3✔
6

7
  load_and_authorize_resource
3✔
8

9
  def show; end
3✔
10

11
  def edit; end
3✔
12

13
  def update
3✔
14
    if @user.update(user_params)
2✔
15
      redirect_to root_path, notice: 'Profile updated successfully.'
1✔
16
    else
17
      render :edit
1✔
18
    end
19
  end
20

21
  private
3✔
22

23
  def set_user
3✔
24
    @user = current_user
5✔
25
  end
26

27
  def user_params
3✔
28
    params.require(:user).permit(:display_name)
2✔
29
  end
30
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