Sha256: 011449f241c478cdbdc18370c84b161a19422a481c6f6fceec39cfd379429329
Contents?: true
Size: 371 Bytes
Versions: 44
Compression:
Stored size: 371 Bytes
Contents
class Progress < ApplicationRecord self.abstract_class = true before_save :parent, unless: :parent_id? belongs_to :parent, class_name: 'Indicator', optional: true def parent assign_attributes(parent: parent_content&.progress_for(user, organization)) unless super super end def dirty_parent_by_submission! parent&.dirty_by_submission! end end
Version data entries
44 entries across 44 versions & 2 rubygems