Class: RailsLiveDashboard::QueriesController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
# File 'app/controllers/rails_live_dashboard/queries_controller.rb', line 3

def index
  @queries = Query.order(created_at: :desc)
end

#showObject



7
8
9
# File 'app/controllers/rails_live_dashboard/queries_controller.rb', line 7

def show
  @query = Query.find(params[:id])
end