• 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

72.73
/app/models/group_option.rb
1
# frozen_string_literal: true
2
class GroupOption < ApplicationRecord
1✔
3
  EMAIL_MESSAGES = 0
1✔
4

5
  belongs_to :group, class_name: "Group"
1✔
6
  belongs_to :user
1✔
7

8
  enum option_type: { email_messages: 0 }
1✔
9

10
  # Provides a human-readable label for the type of the option
11
  # @note This should perhaps in the future parse from a YAML config. file
12
  # @return [String] the label
13
  def self.option_type_labels
1✔
14
    {
×
15
      email_messages: "E-mail messages for Group notifications"
16
    }
17
  end
18

19
  # Finds the label for the option type value set for a given Model
20
  # @param [Integer] value the option type value
21
  # @return [String] the label
22
  def self.find_option_type_label(value)
1✔
23
    option_type_labels.fetch(value.to_sym, nil)
×
24
  end
25

26
  # Finds the label for the option type
27
  # @return [String] the label
28
  def option_type_label
1✔
29
    self.class.find_option_type_label(option_type)
×
30
  end
31
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