Skip to content

Commit

Permalink
Removes custom show method from physical_servers_controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodney Brown committed Mar 23, 2017
1 parent 842fc85 commit 3c72c7e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions app/controllers/api/physical_servers_controller.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
module Api
class PhysicalServersController < BaseController
def show
if params[:c_id]
physical_server = PhysicalServer.find(params[:c_id])
response_payload = physical_server.as_json
response_payload['host_id'] = physical_server.host.try(:id)

render :json=> response_payload
else
super
end
end

def server_ident(server)
"Server instance: #{server.id} name:'#{server.name}'"
end
end
end

0 comments on commit 3c72c7e

Please sign in to comment.