lipsiadmin_generators/backend/templates/views/backend/accounts/index.rjs in lipsiadmin-4.1.8 vs lipsiadmin_generators/backend/templates/views/backend/accounts/index.rjs in lipsiadmin-5.0.0
- old
+ new
@@ -6,9 +6,10 @@
grid.authenticity_token form_authenticity_token
grid.tbar :default
grid.store do |store|
store.url "/backend/accounts.json"
store.fields @column_store.store_fields
+ store.sortInfo :field => "accounts.created_at", :direction => "DESC"
end
grid.columns do |columns|
columns.fields @column_store.column_fields
end
grid.bbar :store => grid.get_store, :pageSize => params[:limit]
\ No newline at end of file