Class: HomeController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#api_request?, #welcome

Methods included from Foreman::ThreadSession::Cleaner

#clear_thread, included

Instance Method Details

#settingsObject


6
7
# File 'app/controllers/home_controller.rb', line 6

def settings
end

#statusObject


9
10
11
12
13
14
15
16
17
18
# File 'app/controllers/home_controller.rb', line 9

def status
  respond_to do |format|
    format.json do
      # make fake db call, measure duration and report errors
      result = exception_watch { User.first }
      render :json => result, :status => result[:status]
    end
    format.all { invalid_request }
  end
end