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

openSUSE / travel-support-program / 4065211400

pending completion
4065211400

push

github

Unknown Committer
Unknown Commit Message

27 of 27 new or added lines in 11 files covered. (100.0%)

1487 of 1661 relevant lines covered (89.52%)

166.44 hits per line

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

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

3
class BudgetsController < InheritedResources::Base
×
4
  respond_to :html, :json
×
5
  skip_load_resource only: %i[index new]
×
6

7
  protected
×
8

9
  def collection
×
10
    @q ||= end_of_association_chain.accessible_by(current_ability).ransack(params[:q])
×
11
    @q.sorts = 'name asc' if @q.sorts.empty?
×
12
    @collection ||= @q.result(distinct: true).page(params[:page]).per(20)
×
13
  end
×
14

15
  def permitted_params
×
16
    params.permit(budget: [:name, :description, :amount, :currency, event_ids: []])
×
17
  end
×
18
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