Sha256: 5dd36c3521182d8f9c1021504bbec5f269355ada274a8fad0688b7bb70b5bf25
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 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' 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoa-0.1.8 | lib/mongoa/mongo_mapper/validations.rb |