Class: Admin::LoginActivitiesController
- Inherits:
-
ApplicationController
- Object
- Administrate::ApplicationController
- ApplicationController
- Admin::LoginActivitiesController
- Defined in:
- lib/kowl/templates/app/controllers/admin/login_activities_controller.rb
Instance Method Summary collapse
-
#order ⇒ Object
See administrate-prototype.herokuapp.com/customizing_controller_actions for more information.
Methods inherited from ApplicationController
Instance Method Details
#order ⇒ Object
See administrate-prototype.herokuapp.com/customizing_controller_actions for more information
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 |