mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:33:05 +08:00
9 lines
270 B
Ruby
9 lines
270 B
Ruby
json.type type
|
|
json.type_name type.constantize.type_name
|
|
json.total_settings_count count
|
|
json.settings do
|
|
json.array! type.constantize.openning.limit(100).each do |setting|
|
|
json.(setting, :name, :key, :email_disabled)
|
|
json.notification_disabled false
|
|
end
|
|
end |