Class: Sequent::EventsController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
# File 'app/controllers/sequent/events_controller.rb', line 5

def index
  @grouped_events = get_events.limit(100).order(id: :desc).includes(:command_record).group_by(&:command_record)
end

#showObject



9
10
11
# File 'app/controllers/sequent/events_controller.rb', line 9

def show
  @event = Sequent::Core::EventRecord.find(params[:id])
end