From b1c5836111a5fc8477b4147474dbebf141aa02ae Mon Sep 17 00:00:00 2001 From: cblanc Date: Wed, 13 May 2015 12:19:44 +0100 Subject: [PATCH] Remove methods not defined on routes --- app/controllers/servers_controller.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/app/controllers/servers_controller.rb b/app/controllers/servers_controller.rb index 72825c2..2df8ae4 100644 --- a/app/controllers/servers_controller.rb +++ b/app/controllers/servers_controller.rb @@ -1,11 +1,6 @@ class ServersController < ApplicationController before_filter :get_server, except: [:index, :refresh, :new, :create] - def refresh - Server.refresh - render :text => t(:servers_updated) - end - def index @servers = Server.hlds.active.ordered.all :include => :user @ns2 = Server.ns2.active.ordered.all :include => :user @@ -25,15 +20,6 @@ class ServersController < ApplicationController raise AccessError unless @server.can_update? cuser end - def admin - @result = @server.execute params[:query] if params[:query] - raise AccessError unless @server.can_update? cuser - - if request.xhr? - render partial: 'response', layout: false - end - end - def create @server = Server.new params[:server] @server.user = cuser