Class: SupplejackApi::Admin::SiteActivitiesController

Inherits:
BaseController show all
Defined in:
app/controllers/supplejack_api/admin/site_activities_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#restrict_to_admin_users!

Methods inherited from SupplejackApi::ApplicationController

#authenticate_admin!, #authenticate_user!, #current_user, #find_user_set

Instance Method Details

#indexObject



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