Add tech contacts attaching

This commit is contained in:
Martin Lensment 2014-09-15 16:39:43 +03:00
parent 80440d741b
commit a9ee1cdad1
6 changed files with 90 additions and 7 deletions

View file

@ -97,10 +97,6 @@ module Epp::DomainsHelper
end
def domain_create_params
period = (@ph[:period].to_i == 0) ? 1 : @ph[:period].to_i
period_unit = Epp::EppDomain.parse_period_unit_from_frame(parsed_frame) || 'y'
valid_to = Date.today + Epp::EppDomain.convert_period_to_time(period, period_unit)
{
name: @ph[:name],
registrar_id: current_epp_user.registrar.try(:id),