Sha256: 671ccb00728dbd55c990073b1632c16753b61c6184baa860fc784d0031b0d123
Contents?: true
Size: 261 Bytes
Versions: 10
Compression:
Stored size: 261 Bytes
Contents
module MongoDoc module Validations class ValidatesEmbedded < ::Validatable::ValidationBase def valid?(instance) instance.send(attribute).valid? end def message(instance) super || "is invalid" end end end end
Version data entries
10 entries across 10 versions & 3 rubygems