Class: Admin::LoginActivitiesController

Inherits:
ApplicationController show all
Defined in:
lib/kowl/templates/app/controllers/admin/login_activities_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#ensure_admin!

Instance Method Details

#orderObject



22
23
24
25
26
27
# File 'lib/kowl/templates/app/controllers/admin/login_activities_controller.rb', line 22

def order
  @order ||= Administrate::Order.new(
    params.fetch(resource_name, {}).fetch(:order, 'created_at'),
    params.fetch(resource_name, {}).fetch(:direction, 'desc')
  )
end