Sha256: 56a8f8b48c2b8adc297d0a0f94937643b4ad43ca48f93e99f9196a566e24ec16
Contents?: true
Size: 452 Bytes
Versions: 28
Compression:
Stored size: 452 Bytes
Contents
module Mongoid module Matchers module Validations class ValidateAssociatedMatcher < HaveValidationMatcher def initialize(name) super(name, :associated) end def description "validate associated #{@field.inspect}" end end def validate_associated(association_name) ValidateAssociatedMatcher.new(association_name) end end end end
Version data entries
28 entries across 28 versions & 4 rubygems