Ignore domain_name attribute on dispute update

This commit is contained in:
Karl Erik Õunapuu 2020-04-30 08:35:17 +03:00
parent 5fabfc7f24
commit f73833e478

View file

@ -35,7 +35,7 @@ module Admin
# PATCH/PUT /admin/disputes/1
def update
if @dispute.update(dispute_params)
if @dispute.update(dispute_params.except(:domain_name))
redirect_to admin_disputes_url, notice: 'Dispute was successfully updated.'
else
render :edit