[Fix #2867] fix default sort for administrate

This commit is contained in:
Mathieu Magnin 2018-11-06 18:32:35 +01:00 committed by gregoirenovel
parent c1d017193c
commit 62c01706df

View file

@ -4,8 +4,10 @@ module Manager
before_action :default_params before_action :default_params
def default_params def default_params
params[:order] ||= "created_at" params[resource_name] ||= {
params[:direction] ||= "desc" order: "created_at",
direction: "desc"
}
end end
protected protected