Class: Renalware::HD::MasterDiary
- Inherits:
-
Diary
- Object
- ActiveRecord::Base
- ApplicationRecord
- Diary
- Renalware::HD::MasterDiary
- Defined in:
- app/models/renalware/hd/master_diary.rb
Defined Under Namespace
Classes: MasterSlotDecorator
Instance Method Summary collapse
Methods inherited from Diary
Methods included from Accountable
#first_or_create_by!, #save_by, #save_by!, #update_by
Instance Method Details
#decorate_slot(slot) ⇒ Object
23 24 25 |
# File 'app/models/renalware/hd/master_diary.rb', line 23 def decorate_slot(slot) MasterSlotDecorator.new(slot) end |
#slot_for(*args) ⇒ Object
27 28 29 |
# File 'app/models/renalware/hd/master_diary.rb', line 27 def slot_for(*args) (slot = super) && decorate_slot(slot) end |