Class: Progress

Inherits:
ApplicationRecord show all
Defined in:
app/models/progress.rb

Direct Known Subclasses

Assignment, Indicator

Instance Method Summary collapse

Methods inherited from ApplicationRecord

aggregate_of, all_except, defaults, #delete, #destroy!, numbered, organic_on, resource_fields, #save, #save_and_notify!, #save_and_notify_changes!, serialize_symbolized_hash_array, #update_and_notify!, update_or_create!, whitelist_attributes

Instance Method Details

#dirty_parent_by_submission!Object



12
13
14
# File 'app/models/progress.rb', line 12

def dirty_parent_by_submission!
  parent&.dirty_by_submission!
end

#parentObject



7
8
9
10
# File 'app/models/progress.rb', line 7

def parent
  assign_attributes(parent: parent_content&.progress_for(user, organization)) unless super
  super
end