Module: Validatable

Module | Validatable
In: | lib/child_validation.rb lib/errors.rb lib/included_validation.rb lib/macros.rb lib/requireable.rb lib/understandable.rb lib/validatable_class_methods.rb lib/validatable_instance_methods.rb lib/validations/validates_acceptance_of.rb lib/validations/validates_confirmation_of.rb lib/validations/validates_each.rb lib/validations/validates_format_of.rb lib/validations/validates_length_of.rb lib/validations/validates_numericality_of.rb lib/validations/validates_presence_of.rb lib/validations/validates_true_for.rb lib/validations/validation_base.rb

### Methods

errors valid? validate_only

### Classes and Modules

Module Validatable::Macros
Class Validatable::Errors

### Public Instance methods

errors

Returns the Errors object that holds all information about attribute error messages.

valid?

Returns true if no errors were added otherwise false. Only executes validations that have no :groups option specified

validate_only(key)

Only executes a specified validation. The argument should follow a pattern based on the key of the validation.

      Examples:
        * validates_presence_of :name can be run with obj.validate_only("presence_of/name")
        * validates_presence_of :birthday, :key => "a key" can be run with obj.validate_only("presence_of/a key")

[Validate]