Small logic fixes

This commit is contained in:
Alex Sherman 2021-01-06 12:09:03 +05:00
parent b60a7e571f
commit 217f009fa3
2 changed files with 1 additions and 6 deletions

View file

@ -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

View file

@ -10,6 +10,7 @@ class Domain < ApplicationRecord
include Concerns::Domain::RegistryLockable
include Concerns::Domain::Releasable
include Concerns::Domain::Disputable
include ToStdout
attr_accessor :roles