Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-07-20 03:05:24 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-07-20 03:05:24 +0300
commit06e03f6e4d3d60e30b38fe218a27c3907a3911cc (patch)
tree9593de27a0dfc13519827d6efff1dbe656f98f81 /lib/feature.rb
parentb60364c0f377f4afdf5e96e84aba11988f4ae526 (diff)
Allow feature flag names to be a symbol
Diffstat (limited to 'lib/feature.rb')
-rw-r--r--lib/feature.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/feature.rb b/lib/feature.rb
index 314ae224d90..d27b2b0e72f 100644
--- a/lib/feature.rb
+++ b/lib/feature.rb
@@ -39,7 +39,7 @@ class Feature
# Flipper creates on-memory features when asked for a not-yet-created one.
# If we want to check if a feature has been actually set, we look for it
# on the persisted features list.
- persisted_names.include?(feature.name)
+ persisted_names.include?(feature.name.to_s)
end
def enabled?(key, thing = nil)