From 217f009fa3443cfe817ea6a9f72f479ba45677b8 Mon Sep 17 00:00:00 2001 From: Alex Sherman Date: Wed, 6 Jan 2021 12:09:03 +0500 Subject: [PATCH] Small logic fixes --- app/models/concerns/domain/releasable.rb | 6 ------ app/models/domain.rb | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/models/concerns/domain/releasable.rb b/app/models/concerns/domain/releasable.rb index b800a4aa5..51e1a6f1c 100644 --- a/app/models/concerns/domain/releasable.rb +++ b/app/models/concerns/domain/releasable.rb @@ -39,7 +39,6 @@ module Concerns def release if release_to_auction - lock! to_stdout 'Destroying domain' destroy! to_stdout "Checking if domain_name is auctionable: #{domain_name.auctionable?}" @@ -53,11 +52,6 @@ module Concerns discard end end - - def to_stdout(message) - time = Time.zone.now.utc - STDOUT << "#{time} - #{message}\n" unless Rails.env.test? - end end end end diff --git a/app/models/domain.rb b/app/models/domain.rb index 589a0b661..34a8c26ff 100644 --- a/app/models/domain.rb +++ b/app/models/domain.rb @@ -10,6 +10,7 @@ class Domain < ApplicationRecord include Concerns::Domain::RegistryLockable include Concerns::Domain::Releasable include Concerns::Domain::Disputable + include ToStdout attr_accessor :roles