Sha256: 6017593a2d6eebf41901bd65ccc53c4ccc0466e25672cecdb035d10e275bad90
Contents?: true
Size: 555 Bytes
Versions: 8
Compression:
Stored size: 555 Bytes
Contents
module ActiveModel module Validations module HelperMethods def validates_date(*attr_names) timeliness_validation_for attr_names, :date end def validates_time(*attr_names) timeliness_validation_for attr_names, :time end def validates_datetime(*attr_names) timeliness_validation_for attr_names, :datetime end def timeliness_validation_for(attr_names, type) validates_with TimelinessValidator, _merge_attributes(attr_names).merge(:type => type) end end end end
Version data entries
8 entries across 8 versions & 5 rubygems