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

sleede / fab-manager / #98

pending completion
#98

push

coveralls-ruby

sylvainbx
Merge branch 'dev' for release 5.7.0

1368 of 1368 new or added lines in 161 files covered. (100.0%)

7383 of 12030 relevant lines covered (61.37%)

14.06 hits per line

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

0.0
/app/controllers/api/user_packs_controller.rb
1
# frozen_string_literal: true
2

3
# API Controller for resources of type StatisticProfilePrepaidPack
4
class API::UserPacksController < API::ApiController
×
5
  before_action :authenticate_user!
×
6

7
  def index
×
8
    @user_packs = PrepaidPackService.user_packs(user, item)
×
9
  end
×
10

11
  private
×
12

13
  def user
×
14
    return User.find(params[:user_id]) if current_user.privileged?
×
15

16
    current_user
×
17
  end
×
18

19
  def item
×
20
    return nil if params[:priceable_type].nil?
×
21

22
    params[:priceable_type].classify.constantize.find(params[:priceable_id])
×
23
  end
×
24
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