Merge pull request #11583 from opf/fix/increase_feature_flag_robustness

increase feature flag robustness
pull/11588/head
ulferts 2 years ago committed by GitHub
commit 56a45c49c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib_static/open_project/feature_decisions.rb

@ -74,7 +74,7 @@ module OpenProject
def define_flag_methods(flag_name)
define_singleton_method "#{flag_name}_active?" do
Setting.send("feature_#{flag_name}_active?")
Setting.exists?("feature_#{flag_name}_active") && Setting.send("feature_#{flag_name}_active?")
end
end

Loading…
Cancel
Save