Sha256: 95cb03bb7e63ddc9dff5cb6c92abbd4add93b373c8587b88cbd218572620aa08

Contents?: true

Size: 404 Bytes

Versions: 134

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/transplants"

module Renalware
  module Transplants
    class FailureCauseDescription < ApplicationRecord
      belongs_to :group, class_name: "FailureCauseDescriptionGroup", foreign_key: "group_id"

      scope :ordered, -> { order(name: :asc) }

      validates :name, presence: true

      def to_s
        name
      end
    end
  end
end

Version data entries

134 entries across 134 versions & 1 rubygems

Version Path
renalware-core-2.0.24 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.23 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.22 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.21 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.20 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.18 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.17 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.16 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.15 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.14 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.13 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.12 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.11 app/models/renalware/transplants/failure_cause_description.rb
renalware-core-2.0.9 app/models/renalware/transplants/failure_cause_description.rb