Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for ruby 1.8.7

  • Loading branch information...
commit b091b2b03ebfb021e1f5faeb20f0678462691777 1 parent 8b76da3
@jnunemaker authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/flipper/adapters/redis.rb
View
2  lib/flipper/adapters/redis.rb
@@ -127,7 +127,7 @@ def to_field(gate, thing)
#
# Returns a Set of the values enabled for the gate.
def fields_to_gate_value(fields, gate)
- regex = /^#{Regexp.escape(gate.key)}\//
+ regex = /^#{Regexp.escape(gate.key.to_s)}\//
keys = fields.grep(regex)
values = keys.map { |key| key.split('/', 2).last }
values.to_set
Please sign in to comment.
Something went wrong with that request. Please try again.