Sha256: 1a9b0bcab39d148f3a15deaf09a4318667801db832bd246b7333b187b29cce9d
Contents?: true
Size: 726 Bytes
Versions: 28
Compression:
Stored size: 726 Bytes
Contents
# frozen_string_literal: true # frozen_string_literal: true require_dependency "renalware/medications" module Renalware module Medications class Provider def self.codes %i(gp hospital home_delivery) end end end end # require_dependency "renalware/medications" # module Renalware # module Medications # class Provider < ApplicationRecord # validates :name, presence: true # validates :code, presence: true # has_many :provider_drug_types, dependent: :restrict_with_exception # has_many :drug_types, through: :provider_drug_types # # TODOL: read from db # def self.codes # %i(gp hospital home_delivery) # end # end # end # end
Version data entries
28 entries across 28 versions & 1 rubygems