Class: Dashboards::LastSeensController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/mission_control/servers/dashboards/last_seens_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



3
4
5
6
7
# File 'app/controllers/mission_control/servers/dashboards/last_seens_controller.rb', line 3

def show
  @project = MissionControl::Servers::Project.find_by(token: params[:project_id])
  @hostname = params[:hostname]
  @service = @project.services.where(hostname: @hostname).last
end