This commit is contained in:
Martin Lensment 2014-09-11 13:55:06 +03:00
parent 90f29f91ee
commit f766fdc21b

View file

@ -32,9 +32,6 @@ class Admin::NameserversController < ApplicationController
end end
def destroy def destroy
# TODO: Refactor this
@nameserver = Nameserver.find(params[:id])
@domain = @nameserver.domains.first
@nameserver.destroy @nameserver.destroy
redirect_to [:admin, @domain] redirect_to [:admin, @domain]
end end