Module: ActiveRecord::Validations

Defined in:
lib/live_validations.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

LIVE_VALIDATIONS_OPTIONS =
{
  :failureMessage => :message,
  :pattern => :with,
  :onlyInteger => :only_integer
}
VALIDATION_METHODS =

more complicated mappings in map_configuration method

{
  :presence => "Validate.Presence",
  :numericality => "Validate.Numericality",
  :format => "Validate.Format",
  :length => "Validate.Length",
  :acceptance => "Validate.Acceptance",
  :confirmation => "Validate.Confirmation"
}