Sha256: dcb310c22c5169756de0c2372b423ebbf44ff86d768908d85bd937cd321ec64a

Contents?: true

Size: 534 Bytes

Versions: 142

Compression:

Stored size: 534 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module Transplants
    class CRFDatedResult < DatedResult
      validates :result,
                numericality: {
                  greater_than: 0,
                  less_than_or_equal_to: 100,
                  allow_blank: true
                }

      # This allow us to add specific validation to this value object while keeping the
      # default rendering of DatedResult
      def to_partial_path
        "renalware/shared/documents/dated_result"
      end
    end
  end
end

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.1.0 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.167 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.166 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.165 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.164 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.163 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.162 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.161 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.160 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.159 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.158 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.157 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.156 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.155 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.153 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.152 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.151 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.149 app/documents/renalware/transplants/crf_dated_result.rb
renalware-core-2.0.148 app/documents/renalware/transplants/crf_dated_result.rb