Improve epp domain renew

This commit is contained in:
Martin Lensment 2014-11-03 16:17:12 +02:00
parent fed8c94884
commit e65e6cfbd2
2 changed files with 11 additions and 3 deletions

View file

@ -31,7 +31,11 @@ module Epp::DomainsHelper
@domain = find_domain
handle_errors(@domain) and return unless @domain
handle_errors(@domain) and return unless @domain.renew(@ph[:curExpDate], @ph[:period])
handle_errors(@domain) and return unless @domain.renew(
parsed_frame.css('curExpDate').text,
parsed_frame.css('period').text,
parsed_frame.css('period').first['unit']
)
render '/epp/domains/renew'
end