Domain info under history

This commit is contained in:
Andres Keskküla 2014-11-19 15:46:04 +02:00
parent 401a193c8f
commit c4f6ad0bd9
6 changed files with 43 additions and 67 deletions

View file

@ -99,7 +99,12 @@ class Domain < ActiveRecord::Base
def make_snapshot
{
name: name,
status: status
status: status,
period: period,
period_unit: period_unit,
registrar_id: registrar.try(:id),
valid_to: valid_to,
valid_from: valid_from
}
end