lib/notification_system/notification_type_subscription.rb
# UNTESTED (except via integration tests)
UNTESTED (except via integration tests)
UNTESTED ( except via integration tests )
def create_scheduled_notifications
      t = Time.now.utc
      x = self.notifications_created_since_recurrence_last_updated_count
      while (d = recurrence[x]) && t >= d
        create_notification_for_date(d)
        self.notifications_created_since_recurrence_last_updated_count += 1
        self.save!
        x += 1
      end            
    end
def create_scheduled_notifications t = Time . now . utc x = self . notifications_created_since_recurrence_last_updated_count while ( d = recurrence [ x ] ) && t >= d create_notification_for_date ( d ) self . notifications_created_since_recurrence_last_updated_count += 1 self . save! x += 1 end end
UNTESTED (except via integration tests)
UNTESTED ( except via integration tests )