Class: Locomotive::DashboardController

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

Instance Method Summary collapse

Instance Method Details

#showObject



8
9
10
11
# File 'app/controllers/locomotive/dashboard_controller.rb', line 8

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