Sfoglia il codice sorgente

Fix schedulen op nieuwe activiteit

Maarten van den Berg 6 anni fa
parent
commit
1a25501c66
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      app/models/activity.rb

+ 3 - 0
app/models/activity.rb

@@ -71,6 +71,9 @@ class Activity < ApplicationRecord
71 71
 
72 72
   after_create :create_missing_participants!
73 73
   after_create :copy_default_subgroups!
74
+  after_create :schedule_reminder
75
+  after_create :schedule_subgroup_division
76
+
74 77
   after_commit :schedule_reminder,
75 78
                if: Proc.new { |a| a.previous_changes["reminder_at"] }
76 79
   after_commit :schedule_subgroup_division,