Sha256: 2bb43a78d30090d25274eecf0f3d98a9fa889740e17b2ac2fb6bc249f4ede5e0
Contents?: true
Size: 236 Bytes
Versions: 14
Compression:
Stored size: 236 Bytes
Contents
module Validatable class ValidatesAcceptanceOf < ValidationBase #:nodoc: def valid?(instance) instance.send(self.attribute) == "true" end def message(instance) super || "must be accepted" end end end
Version data entries
14 entries across 14 versions & 2 rubygems