From 06e03f6e4d3d60e30b38fe218a27c3907a3911cc Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre Date: Thu, 19 Jul 2018 21:05:24 -0300 Subject: Allow feature flag names to be a symbol --- lib/feature.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/feature.rb') 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) -- cgit v1.2.3