mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fix: template message settinng type order by order index
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
json.partial! "commons/success"
|
||||
json.setting_types do
|
||||
|
||||
json.array! @group_settings.keys.sort_by{|i| i.constantize.type_name}.each do |k|
|
||||
json.array! @group_settings.keys.sort_by{|i| i.constantize.order_index}.each do |k|
|
||||
json.partial! "detail", type: k, count: @group_settings[k]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user