Class: DashboardController

Inherits:
ApplicationController show all
Includes:
Foreman::Controller::AutoCompleteSearch
Defined in:
app/controllers/dashboard_controller.rb

Instance Method Summary collapse

Methods included from Foreman::Controller::AutoCompleteSearch

#auto_complete_search, #invalid_search_query

Methods inherited from ApplicationController

#api_request?, #welcome

Methods included from Foreman::ThreadSession::Cleaner

#clear_thread, included

Instance Method Details

#indexObject


5
6
7
8
9
10
11
# File 'app/controllers/dashboard_controller.rb', line 5

def index
  respond_to do |format|
    format.html
    format.yaml { render :text => @report.to_yaml }
    format.json { render :json => @report }
  end
end