From a258c19da528b5bbc44a65b8f2a2007e8445cbcd Mon Sep 17 00:00:00 2001 From: Luke Arndt Date: Tue, 24 Sep 2024 17:20:35 +1200 Subject: [PATCH] Remove leftovers:keep annotations to test CI --- app/controllers/application_controller.rb | 2 +- app/models/user.rb | 2 +- scheduler.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 74224d4..ae62d64 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -19,7 +19,7 @@ class ApplicationController < ActionController::Base before_action :set_paper_trail_whodunnit # Allow pundit to authorize a non-logged in user - def pundit_user # leftovers:keep + def pundit_user current_user || User.new end diff --git a/app/models/user.rb b/app/models/user.rb index 6e8adce..dd9b688 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -12,7 +12,7 @@ class User < VersionedRecord has_many :user_roles, dependent: :destroy has_many :roles, through: :user_roles has_many :managed_categories, foreign_key: :manager_id, class_name: "Category" # leftovers:keep - has_many :managed_indicators, foreign_key: :manager_id, class_name: "Indicator" # leftovers:keep + has_many :managed_indicators, foreign_key: :manager_id, class_name: "Indicator" has_many :user_categories has_many :categories, through: :user_categories has_many :bookmarks diff --git a/scheduler.rb b/scheduler.rb index 49f6819..9b9e9ce 100644 --- a/scheduler.rb +++ b/scheduler.rb @@ -2,7 +2,7 @@ require File.expand_path("../config/environment", __FILE__) require "clockwork" -module Clockwork # leftovers:keep +module Clockwork every(1.day, "Send Due Emails", at: "10:30", tz: Rails.application.config.time_zone) do SendDueEmailsJob.perform_now end