Class: RailsAgents::DashboardController

Inherits:
ApplicationController show all
Defined in:
app/controllers/rails_agents/dashboard_controller.rb

Instance Method Summary collapse

Instance Method Details

#proxyObject



18
19
20
21
22
23
24
25
26
27
28
29
# File 'app/controllers/rails_agents/dashboard_controller.rb', line 18

def proxy
  load_local_credentials!
  unless configured?
    redirect_to rails_agents.
    return
  end

  @embed_token = take_embed_token!
  path = "/dashboard/#{params[:path]}"
  @dashboard_url = build_embed_url(path, dashboard_query)
  render :show
end

#showObject



7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/rails_agents/dashboard_controller.rb', line 7

def show
  load_local_credentials!
  unless configured?
    redirect_to rails_agents.
    return
  end

  @embed_token = take_embed_token!
  @dashboard_url = build_embed_url("/dashboard", dashboard_query)
end