lib/kindergarten/governesses/head_governess.rb in kindergarten-0.0.5 vs lib/kindergarten/governesses/head_governess.rb in kindergarten-0.1.0

- old
+ new

@@ -2,10 +2,11 @@ # The Governess keeps an eye on the child in the sandbox and makes sure # she plays nicely and within the bounds of legality # class HeadGoverness include CanCan::Ability + attr_reader :child def initialize(child) @child = child @unguarded = false @rules = [] @@ -128,10 +129,10 @@ scrubbed.each do |key, value| untaint = untaint_opts[key] next if untaint == :pass - match = value.match(untaint) + match = "#{value}".match(untaint) if match.nil? scrubbed.delete key else scrubbed[key] = match[1] end