lib/flipper/gates/boolean.rb in flipper-0.26.0 vs lib/flipper/gates/boolean.rb in flipper-0.26.1
- old
+ new
@@ -22,10 +22,10 @@
# Internal: Checks if the gate is open for a thing.
#
# Returns true if explicitly set to true, false if explicitly set to false
# or nil if not explicitly set.
def open?(context)
- context.values[key]
+ context.values.boolean
end
def wrap(thing)
Types::Boolean.wrap(thing)
end