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

pulibrary / pdc_describe / cace366a-ffad-45f1-9b60-678e607fa527

14 May 2024 02:21PM UTC coverage: 60.862% (-35.0%) from 95.908%
cace366a-ffad-45f1-9b60-678e607fa527

push

circleci

jrgriffiniii
wip

1 of 3 new or added lines in 2 files covered. (33.33%)

1194 existing lines in 57 files now uncovered.

2076 of 3411 relevant lines covered (60.86%)

22.71 hits per line

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

53.33
/app/controllers/work_activity_notifications_controller.rb
1
# frozen_string_literal: true
2
class WorkActivityNotificationsController < ApplicationController
1✔
3
  before_action :set_activity_notification, only: %i[show]
1✔
4

5
  # GET /activity_notifications or /activity_notifications.json
6
  def index
1✔
UNCOV
7
    @work_activity_notifications = WorkActivityNotification.where(user_id: user.id).order(created_at: :desc)
×
8
  end
9

10
  # GET /activity_notifications/1 or /activity_notifications/1.json
11
  def show; end
1✔
12

13
  private
1✔
14

15
    # Use callbacks to share common setup or constraints between actions.
16
    def set_activity_notification
1✔
UNCOV
17
      @work_activity_notification = WorkActivityNotification.find(params[:id])
×
18
    end
19

20
    def user
1✔
UNCOV
21
      @user ||= if user_param
×
UNCOV
22
                  User.find_by(uid: user_param) || current_user
×
23
                else
UNCOV
24
                  current_user
×
25
                end
26
    end
27

28
    def user_param
1✔
UNCOV
29
      return nil unless current_user.super_admin?
×
UNCOV
30
      @user_param ||= params[:user]
×
31
    end
32
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