Sha256: d256ae52ac1ebf4bfcca3301b8e3ab8c777677daff551a4256602e4adc3fbf80

Contents?: true

Size: 567 Bytes

Versions: 18

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/events"
require "document/base"
require "document/embedded"
require "document/enum"

module Renalware
  module Events
    class AdvancedCarePlan < Events::Event
      include Document::Base

      class Document < Document::Embedded
        attribute :state, ::Document::Enum # See i18n for options
        validates :state, presence: true
      end
      has_document

      def partial_for(partial_type)
        File.join("renalware/events/advanced_care_plans", partial_type)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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