Do not allow to permanently remove a price

#522
This commit is contained in:
Artur Beljajev 2017-05-23 17:31:32 +03:00
parent 18be71b519
commit 7d94273a5e
6 changed files with 3 additions and 64 deletions

View file

@ -41,12 +41,6 @@ module Admin
end
end
def destroy
@price.destroy!
flash[:notice] = t('.destroyed')
redirect_to_index
end
private
def load_price