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

pulibrary / pdc_describe / 9dbcf7a4-1c56-4510-9614-74ad5a22cff6

31 Jul 2024 02:46PM UTC coverage: 1.08% (-95.1%) from 96.17%
9dbcf7a4-1c56-4510-9614-74ad5a22cff6

push

circleci

jrgriffiniii
wip

52 of 4814 relevant lines covered (1.08%)

0.01 hits per line

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

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

5
  # GET /activity_notifications or /activity_notifications.json
6
  def index
×
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
×
12

13
  private
×
14

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

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

28
    def user_param
×
29
      return nil unless current_user.super_admin?
×
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