mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Story#108521790 - update that code works with nameservers
This commit is contained in:
parent
f6d16f51e9
commit
01a82a2960
3 changed files with 31 additions and 22 deletions
|
@ -1,6 +1,7 @@
|
|||
module Legacy
|
||||
class ObjectState < Db
|
||||
self.table_name = :object_state
|
||||
attr_accessor :history_domain
|
||||
|
||||
scope :valid, -> { where('valid_to IS NULL') }
|
||||
|
||||
|
@ -82,6 +83,8 @@ module Legacy
|
|||
|
||||
def get_current_domain_object(time, param)
|
||||
d_his = Legacy::DomainHistory.get_record_at(object_id, historyid)
|
||||
@history_domain = d_his
|
||||
|
||||
hash = d_his.get_current_domain_object(time, param)
|
||||
hash[:statuses] = Legacy::ObjectState.states_for_domain_at(object_id, time + 1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue