mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-14 22:01:28 +00:00
Remove methods not defined on routes
This commit is contained in:
parent
92ff84bbb9
commit
0c35e2ab5b
1 changed files with 0 additions and 14 deletions
|
@ -1,11 +1,6 @@
|
||||||
class ServersController < ApplicationController
|
class ServersController < ApplicationController
|
||||||
before_filter :get_server, except: [:index, :refresh, :new, :create]
|
before_filter :get_server, except: [:index, :refresh, :new, :create]
|
||||||
|
|
||||||
def refresh
|
|
||||||
Server.refresh
|
|
||||||
render :text => t(:servers_updated)
|
|
||||||
end
|
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@servers = Server.hlds.active.ordered.all :include => :user
|
@servers = Server.hlds.active.ordered.all :include => :user
|
||||||
@ns2 = Server.ns2.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
|
raise AccessError unless @server.can_update? cuser
|
||||||
end
|
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
|
def create
|
||||||
@server = Server.new params[:server]
|
@server = Server.new params[:server]
|
||||||
@server.user = cuser
|
@server.user = cuser
|
||||||
|
|
Loading…
Reference in a new issue