Sha256: b9b1c047f9611915a89958dcca523bcb057ea7ff377aa4aef9bbd76f29e31a96
Contents?: true
Size: 370 Bytes
Versions: 16
Compression:
Stored size: 370 Bytes
Contents
module HaveAPI::Client class Validators::Confirmation < Validator name :confirm def valid? other = opts[:parameter].to_sym if opts[:equal] return false if params[other].nil? value == params[other].value else other = params[other] ? params[other].value : nil value != other end end end end
Version data entries
16 entries across 16 versions & 1 rubygems