Class: Sequent::EventsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Sequent::EventsController
- Defined in:
- app/controllers/sequent/events_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |
#show ⇒ Object
9 10 11 |
# File 'app/controllers/sequent/events_controller.rb', line 9 def show @event = Sequent::Core::EventRecord.find(params[:id]) end |