mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
parent
9b9fb2f8aa
commit
7fe1b641c7
5 changed files with 47 additions and 0 deletions
|
@ -85,6 +85,7 @@ class Registrar
|
|||
def new
|
||||
authorize! :create, Depp::Domain
|
||||
@domain_params = Depp::Domain.default_params
|
||||
@domain_params[:period] = Depp::Domain.default_period
|
||||
end
|
||||
|
||||
def create
|
||||
|
@ -140,6 +141,7 @@ class Registrar
|
|||
@data = @domain.renew(params)
|
||||
render 'renew_index' and return unless response_ok?
|
||||
else
|
||||
params[:period] = Depp::Domain.default_period
|
||||
render 'renew_index'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue