组织列表时间倒序排列
This commit is contained in:
parent
7d5a5f1de2
commit
69ec475752
|
@ -390,7 +390,7 @@ class AdminController < ApplicationController
|
|||
|
||||
#组织
|
||||
def organization
|
||||
@organizations = Organization.all
|
||||
@organizations = Organization.find_by_sql("SELECT * FROM organizations ORDER BY created_at DESC")
|
||||
respond_to do |format|
|
||||
format.html
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue