Class: Renalware::HD::Session::DNA
- Inherits:
-
Renalware::HD::Session
- Object
- ActiveRecord::Base
- ApplicationRecord
- Renalware::HD::Session
- Renalware::HD::Session::DNA
- Includes:
- Document::Base
- Defined in:
- app/models/renalware/hd/session/dna.rb
Defined Under Namespace
Classes: Document
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Renalware::HD::Session
#compute_duration, #start_datetime, #stop_datetime
Methods included from Accountable
#first_or_create_by!, #save_by, #save_by!, #update_by
Class Method Details
.policy_class ⇒ Object
18 19 20 |
# File 'app/models/renalware/hd/session/dna.rb', line 18 def self.policy_class DNASessionPolicy end |
Instance Method Details
#immutable? ⇒ Boolean
22 23 24 25 26 |
# File 'app/models/renalware/hd/session/dna.rb', line 22 def immutable? return true unless persisted? temporary_editing_window_has_elapsed? end |