Sha256: cda03015e1c7d76805fb2944e8cd6d7fafdb3f715e8b4ad9df975639ae19b937

Contents?: true

Size: 384 Bytes

Versions: 5

Compression:

Stored size: 384 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/problems"

module Renalware
  module Problems
    class Note < ApplicationRecord
      include Accountable

      belongs_to :problem, touch: true

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

      validates :description, presence: true

      def self.policy_class
        BasePolicy
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
renalware-core-2.0.121 app/models/renalware/problems/note.rb
renalware-core-2.0.120 app/models/renalware/problems/note.rb
renalware-core-2.0.119 app/models/renalware/problems/note.rb
renalware-core-2.0.118 app/models/renalware/problems/note.rb
renalware-core-2.0.117 app/models/renalware/problems/note.rb