lib/verdict/experiment.rb in verdict-0.15.0 vs lib/verdict/experiment.rb in verdict-0.15.1
- old
+ new
@@ -241,10 +241,10 @@
def disqualify_empty_identifier?
@disqualify_empty_identifier
end
- def subject_qualifies?(subject, dynamic_qualifiers, context = nil)
+ def subject_qualifies?(subject, dynamic_qualifiers = [], context = nil)
ensure_experiment_has_started
return false unless dynamic_qualifiers.all? { |qualifier| qualifier.call(subject) }
everybody_qualifies? || @qualifiers.all? { |qualifier| qualifier.call(subject, context) }
end