Fix controller & routes

This commit is contained in:
Alex Sherman 2020-12-10 14:07:07 +05:00
parent ee2601b8de
commit 9c662471a7
5 changed files with 13 additions and 16 deletions

View file

@ -4,9 +4,16 @@ class Registrar
def new
authorize! :manage, :repp
@expire_date = Time.zone.now.to_date
render file: 'registrar/bulk_change/new', locals: { active_tab: default_tab }
end
def bulk_renew
authorize! :manage, :repp
@expire_date = params[:expire_date].to_date
render file: 'registrar/bulk_change/new', locals: { active_tab: :bulk_renew }
end
private
def available_contacts

View file

@ -1,9 +0,0 @@
class Registrar
class BulkRenewController < DeppController
def index; end
def new
authorize! :manage, :repp
end
end
end