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

pulibrary / pdc_describe / 9091a1ae-29be-458c-984a-339d213919c4

12 Dec 2024 07:41PM UTC coverage: 26.434% (-69.7%) from 96.113%
9091a1ae-29be-458c-984a-339d213919c4

Pull #2000

circleci

jrgriffiniii
Removing integration with ActiveStorage
Pull Request #2000: Bump actionpack from 7.2.1.1 to 7.2.2.1

945 of 3575 relevant lines covered (26.43%)

0.35 hits per line

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

6.67
/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]
×
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