Skip to content

Commit

Permalink
Remove deprecated render file clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
yulgolem committed May 3, 2021
1 parent 98741d8 commit 6862655
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/controllers/registrar/bulk_change_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class BulkChangeController < DeppController
def new
authorize! :manage, :repp
@expire_date = Time.zone.now.to_date
render file: 'registrar/bulk_change/new', locals: { active_tab: default_tab }
render 'registrar/bulk_change/new', locals: { active_tab: default_tab }
end

def bulk_renew
Expand All @@ -21,7 +21,7 @@ def bulk_renew
flash[:notice] = nil
end

render file: 'registrar/bulk_change/new', locals: { active_tab: :bulk_renew }
render 'registrar/bulk_change/new', locals: { active_tab: :bulk_renew }
end

private
Expand All @@ -45,7 +45,7 @@ def process_response(response:, start_notice: '', active_tab:)
redirect_to registrar_domains_url
else
@error = response.code == '404' ? 'Contact(s) not found' : parsed_response[:message]
render file: 'registrar/bulk_change/new', locals: { active_tab: active_tab }
render 'registrar/bulk_change/new', locals: { active_tab: active_tab }
end
end

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/registrar/domain_transfers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def create
redirect_to registrar_domains_url
else
@api_errors = parsed_response[:message]
render file: 'registrar/bulk_change/new', locals: { active_tab: :bulk_transfer }
render 'registrar/bulk_change/new', locals: { active_tab: :bulk_transfer }
end
else
params[:request] = true # EPP domain:transfer "op" attribute
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/registrar/nameservers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def update
flash: { notice: compose_notice_message(parsed_response) })
else
@api_errors = parsed_response[:message]
render file: 'registrar/bulk_change/new', locals: { active_tab: :nameserver }
render 'registrar/bulk_change/new', locals: { active_tab: :nameserver }
end
end

Expand Down

0 comments on commit 6862655

Please sign in to comment.