mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Added possibilty to delete pricelist from admin #2380
This commit is contained in:
parent
b0296bd33e
commit
f5b5c1fb25
3 changed files with 10 additions and 2 deletions
|
@ -32,6 +32,11 @@ class Admin::PricelistsController < AdminController
|
|||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
@pricelist.destroy
|
||||
redirect_to admin_pricelists_url
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_pricelist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue