mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 22:54:47 +02:00
Remove destroy button from closed disputes
This commit is contained in:
parent
fabcdf9b7e
commit
bd8ffb7e1d
2 changed files with 2 additions and 9 deletions
|
@ -44,8 +44,8 @@ module Admin
|
|||
|
||||
# DELETE /admin/disputes/1
|
||||
def delete
|
||||
@dispute.destroy
|
||||
redirect_to admin_disputes_url, notice: 'Dispute was successfully destroyed.'
|
||||
@dispute.update(closed: true)
|
||||
redirect_to admin_disputes_url, notice: 'Dispute was successfully closed.'
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue