let activities order by year
This commit is contained in:
parent
dce3a5b2c9
commit
e632168326
|
@ -9,7 +9,7 @@ class Admin::ActivitiesController < OrbitMemberController
|
|||
#before_action :allow_admin_only, :only => [:index, :setting]
|
||||
|
||||
def index
|
||||
@activities = Activity.all.page(params[:page]).per(10)
|
||||
@activities = Activity.order_by(:year => 'desc').page(params[:page]).per(10)
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.xml { render :xml => @activities }
|
||||
|
|
Loading…
Reference in New Issue