mirror of
https://github.com/internetee/registry.git
synced 2025-06-13 16:14:47 +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
|
def release
|
||||||
if release_to_auction
|
if release_to_auction
|
||||||
lock!
|
|
||||||
to_stdout 'Destroying domain'
|
to_stdout 'Destroying domain'
|
||||||
destroy!
|
destroy!
|
||||||
to_stdout "Checking if domain_name is auctionable: #{domain_name.auctionable?}"
|
to_stdout "Checking if domain_name is auctionable: #{domain_name.auctionable?}"
|
||||||
|
@ -53,11 +52,6 @@ module Concerns
|
||||||
discard
|
discard
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_stdout(message)
|
|
||||||
time = Time.zone.now.utc
|
|
||||||
STDOUT << "#{time} - #{message}\n" unless Rails.env.test?
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -10,6 +10,7 @@ class Domain < ApplicationRecord
|
||||||
include Concerns::Domain::RegistryLockable
|
include Concerns::Domain::RegistryLockable
|
||||||
include Concerns::Domain::Releasable
|
include Concerns::Domain::Releasable
|
||||||
include Concerns::Domain::Disputable
|
include Concerns::Domain::Disputable
|
||||||
|
include ToStdout
|
||||||
|
|
||||||
attr_accessor :roles
|
attr_accessor :roles
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue