mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
Small logic fixes
This commit is contained in:
parent
b60a7e571f
commit
217f009fa3
2 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -10,6 +10,7 @@ class Domain < ApplicationRecord
|
|||
include Concerns::Domain::RegistryLockable
|
||||
include Concerns::Domain::Releasable
|
||||
include Concerns::Domain::Disputable
|
||||
include ToStdout
|
||||
|
||||
attr_accessor :roles
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue