Sha256: c930d37589e5776377eb74eba7825f1f344721b1895911765bd862b56c53edb3

Contents?: true

Size: 315 Bytes

Versions: 18

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/pd"

module Renalware
  module PD
    class PETDextroseConcentration < ApplicationRecord
      validates :name, presence: true, uniqueness: true

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

      def to_s
        name
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.1.0 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.167 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.166 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.165 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.164 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.163 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.162 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.161 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.160 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.159 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.158 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.157 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.156 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.155 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.153 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.152 app/models/renalware/pd/pet_dextrose_concentration.rb
renalware-core-2.0.151 app/models/renalware/pd/pet_dextrose_concentration.rb