Class ValidatesTimeliness::Validator
In: lib/validates_timeliness/validator.rb
Parent: ActiveModel::EachValidator

Methods

Included Modules

Conversion

Constants

RESTRICTIONS = { :is_at => :==, :before => :<, :after => :>, :on_or_before => :<=, :on_or_after => :>=, }.freeze
DEFAULT_ERROR_VALUE_FORMATS = { :date => '%Y-%m-%d', :time => '%H:%M:%S', :datetime => '%Y-%m-%d %H:%M:%S'
RESTRICTION_ERROR_MESSAGE = "Error occurred validating %s for %s restriction:\n%s"

Attributes

attributes  [R] 
type  [R] 

Public Class methods

Public Instance methods

[Validate]