From af062e1fb6687cb373bb1a7166be7cfcf48a819d Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Mon, 2 Sep 2024 15:17:46 +0100 Subject: [PATCH] Remove debugging lines --- app/models/location.rb | 8 -------- app/models/scheme.rb | 1 - 2 files changed, 9 deletions(-) diff --git a/app/models/location.rb b/app/models/location.rb index 56eefa270..60bab3629 100644 --- a/app/models/location.rb +++ b/app/models/location.rb @@ -182,14 +182,6 @@ class Location < ApplicationRecord end def status_at(date) - Rails.logger.debug "Checking status at #{date} for location #{id}" - Rails.logger.debug "Discarded at: #{discarded_at}" - Rails.logger.debug "Confirmed: #{confirmed}" - Rails.logger.debug "Scheme status: #{scheme.status_at(date)}" - Rails.logger.debug "Open deactivation: #{open_deactivation&.deactivation_date}" - Rails.logger.debug "Last deactivation before: #{last_deactivation_before(date)&.reactivation_date}" - Rails.logger.debug "Start date: #{startdate}" - return :deleted if discarded_at.present? return :incomplete unless confirmed return :deactivated if scheme.owning_organisation.status_at(date) == :deactivated || diff --git a/app/models/scheme.rb b/app/models/scheme.rb index 8b6891c25..6d3524723 100644 --- a/app/models/scheme.rb +++ b/app/models/scheme.rb @@ -310,7 +310,6 @@ class Scheme < ApplicationRecord end def has_active_locations? - # binding.pry locations.active.exists? end