Class: RailsLiveDashboard::ExceptionsController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
7
# File 'app/controllers/rails_live_dashboard/exceptions_controller.rb', line 3

def index
  @exceptions = Exception
    .where(should_show: true)
    .order(created_at: :desc)
end

#showObject



9
10
11
# File 'app/controllers/rails_live_dashboard/exceptions_controller.rb', line 9

def show
  @exception = Exception.find(params[:id])
end