Sha256: aed2c11ecccbee459c66740ffa157c520a842efb06b41dd16faaa0f9fe4056c9
Contents?: true
Size: 597 Bytes
Versions: 3
Compression:
Stored size: 597 Bytes
Contents
# -*- encoding: utf-8 -*- require 'data_mapper/validation/rule/within/range' module DataMapper module Validation class Rule module Within module Range class UnboundedBegin < Rule include Range def violation_type(resource) :less_than_or_equal_to end def violation_data(resource) [ [ :maximum, range.max ] ] end end # class UnboundedBegin end # module Range end # module Within end # class Rule end # module Validation end # module DataMapper
Version data entries
3 entries across 3 versions & 1 rubygems