Make installation details code easier to follow

This commit is contained in:
Javi Martín
2023-07-01 21:51:32 +02:00
parent 88f499d114
commit 28a90f05f8

View File

@@ -14,6 +14,9 @@ class InstallationController < ApplicationController
end
def settings_feature_flags
Setting.where("key LIKE 'process.%'").each_with_object({}) { |x, n| n[x.key.remove("process.")] = x.value }
Setting.where("key LIKE 'process.%'")
.pluck(:key, :value)
.to_h
.transform_keys { |key| key.remove("process.") }
end
end