Do not allow to permanently remove a zone

#522
This commit is contained in:
Artur Beljajev 2017-05-23 17:23:05 +03:00
parent 64f6e07a20
commit 35267820f9
6 changed files with 2 additions and 58 deletions

View file

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