Class: SolidLoop::EventsController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
# File 'app/controllers/solid_loop/events_controller.rb', line 3

def index
  @pagination = paginate(SolidLoop::Admin::EventsQuery.new(params).call)
  @events = @pagination[:records]
end

#showObject



8
9
10
# File 'app/controllers/solid_loop/events_controller.rb', line 8

def show
  @event = SolidLoop::Event.find(params[:id])
end