Commit cd15e891 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #2008 from Partugal/patch-default-order

add order for projects admin page
parents 6878f556 bb3fc1e0
...@@ -4,7 +4,7 @@ class Admin::ProjectsController < AdminController ...@@ -4,7 +4,7 @@ class Admin::ProjectsController < AdminController
def index def index
@admin_projects = Project.scoped @admin_projects = Project.scoped
@admin_projects = @admin_projects.search(params[:name]) if params[:name].present? @admin_projects = @admin_projects.search(params[:name]) if params[:name].present?
@admin_projects = @admin_projects.page(params[:page]).per(20) @admin_projects = @admin_projects.order("name ASC").page(params[:page]).per(20)
end end
def show def show
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment