Sha256: 31cf9a0f65a4f9d68719e6a4531aece415b4a09f73fee3b7bfc6231dd55c9eea

Contents?: true

Size: 401 Bytes

Versions: 21

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/hd"

module Renalware
  module HD
    class Dialyser < ApplicationRecord
      acts_as_paranoid

      validates :group, presence: true
      validates :name, presence: true

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

      def self.policy_class
        BasePolicy
      end

      def to_s
        name
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
renalware-core-2.0.32 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.31 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.30 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.28 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.27 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.26 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.25 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.24 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.23 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.22 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.21 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.20 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.18 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.17 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.16 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.15 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.14 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.13 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.12 app/models/renalware/hd/dialyser.rb
renalware-core-2.0.11 app/models/renalware/hd/dialyser.rb