lib/flipper/gates/boolean.rb in flipper-0.7.5 vs lib/flipper/gates/boolean.rb in flipper-0.8.0

- old
+ new

@@ -14,10 +14,10 @@ def data_type :boolean end def enabled?(value) - Typecast.to_boolean(value) + !!value end # Internal: Checks if the gate is open for a thing. # # Returns true if explicitly set to true, false if explicitly set to false