Class: SupplejackApi::Admin::SiteActivitiesController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- SupplejackApi::ApplicationController
- BaseController
- SupplejackApi::Admin::SiteActivitiesController
- Defined in:
- app/controllers/supplejack_api/admin/site_activities_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Methods inherited from SupplejackApi::ApplicationController
#authenticate_admin!, #authenticate_user!, #current_user, #find_user_set
Instance Method Details
#index ⇒ Object
15 16 17 18 |
# File 'app/controllers/supplejack_api/admin/site_activities_controller.rb', line 15 def index @site_activities = SupplejackApi::SiteActivity.sortable(order: params[:order], page: params[:page]) .order_by(date: :desc) end |