Class: Masks::Manage::DevicesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/masks/manage/devices_controller.rb

Instance Attribute Summary

Attributes inherited from BaseController

#section

Instance Method Summary collapse

Methods inherited from BaseController

section

Methods included from Controller

#current_access, #current_actor, #current_mask, #masked_session

Instance Method Details

#indexObject



13
14
15
16
# File 'app/controllers/masks/manage/devices_controller.rb', line 13

def index
  @pagy, @devices =
    pagy(Masks.configuration.model(:device).all.order(created_at: :desc))
end