Method: EffectiveCpdStatement#import!
- Defined in:
- app/models/concerns/effective_cpd_statement.rb
#import!(date: nil) ⇒ Object
106 107 108 109 110 111 112 113 114 |
# File 'app/models/concerns/effective_cpd_statement.rb', line 106 def import!(date: nil) date ||= Time.zone.now wizard_steps[:start] ||= date wizard_steps[:activities] ||= date cpd_statement_activities.each { |activity| activity.importing = true } save! end |