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