diff --git a/app/models/event_callbacks.rb b/app/models/event_callbacks.rb index 696dbaa6..6882f7e4 100644 --- a/app/models/event_callbacks.rb +++ b/app/models/event_callbacks.rb @@ -16,7 +16,7 @@ class EventCallbacks def self.before_update(event) return unless event.will_save_change_to_moderated? && event.moderated? event.decision_time = Time.zone.now - create_repeats event if event.repeat > 0 && event.rule + create_repeats event if event.repeat.try(:positive?) && event.rule end def self.after_update(event)