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

pulibrary / tigerdata-app / 9d76b7eb-940a-44e8-b4ac-cf7b8cdcc98c

01 Dec 2025 03:02PM UTC coverage: 80.707% (-6.9%) from 87.594%
9d76b7eb-940a-44e8-b4ac-cf7b8cdcc98c

Pull #2251

circleci

carolyncole
Updating the department select to utilize LuxInputMultiSelect
The component only allows an item to be selected once (only for non asynch results which departments are).
fiexs #2134
Pull Request #2251: Updating the department select to utilize LuxInputMultiSelect

2602 of 3224 relevant lines covered (80.71%)

263.99 hits per line

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

100.0
/app/models/project_purpose.rb
1
# frozen_string_literal: true
2
class ProjectPurpose
2✔
3
  attr_accessor :id, :label
2✔
4

5
  def initialize(id, label)
2✔
6
    @id = id
15✔
7
    @label = label
15✔
8
  end
9

10
  def self.all
2✔
11
    research = ProjectPurpose.new("research", "Research")
5✔
12
    admin = ProjectPurpose.new("administrative", "Administrative")
5✔
13
    teaching = ProjectPurpose.new("teaching", "Teaching")
5✔
14
    [research, admin, teaching]
5✔
15
  end
16

17
  # Returns the label for a given purpose id
18
  def self.label_for(id)
2✔
19
    all.each do |purpose|
3✔
20
      return purpose.label if purpose.id == id
9✔
21
    end
22
    id
3✔
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

© 2025 Coveralls, Inc