Sha256: b5e89325665a55e9addcf10d3ff5f27f341c780a92e3fab2d31494c0f3497bec
Contents?: true
Size: 644 Bytes
Versions: 2
Compression:
Stored size: 644 Bytes
Contents
require 'mongoa/mongo_mapper/validations/validate_base' require 'mongoa/mongo_mapper/validations/validate_presence_of' require 'mongoa/mongo_mapper/validations/validate_inclusion_of' require 'mongoa/mongo_mapper/validations/validate_length_of' module Mongoa module MongoMapper module Matchers def validate_presence_of(attr) ValidatePresenceOfMatcher.new(attr) end def validate_inclusion_of(attr, within) ValidateInclusionOfMatcher.new(attr, within) end def validate_length_of(attr, length_options) ValidateLengthOfMatcher.new(attr, length_options) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoa-0.1.12 | lib/mongoa/mongo_mapper/validations.rb |
mongoa-0.1.11 | lib/mongoa/mongo_mapper/validations.rb |