Class: Locomotive::DashboardController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/locomotive/dashboard_controller.rb

Instance Method Summary collapse

Methods included from Concerns::UrlHelpersController

#current_site_public_url, #public_page_url

Instance Method Details

#showObject



6
7
8
9
# File 'app/controllers/locomotive/dashboard_controller.rb', line 6

def show
  @activities = current_site.activities.order_by(:created_at.desc).page(params[:page]).per(Locomotive.config.ui[:per_page])
  respond_with @activities, layout: !request.xhr?
end