diff --git a/app/controllers/installation_controller.rb b/app/controllers/installation_controller.rb index 95fe9e5d0..da45177d3 100644 --- a/app/controllers/installation_controller.rb +++ b/app/controllers/installation_controller.rb @@ -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