Module: Validatable::ClassMethods
- Includes:
- Macros
- Defined in:
- lib/validatable/validatable.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods included from Macros
#validates_acceptance_of, #validates_associated, #validates_confirmation_of, #validates_each, #validates_exclusion_of, #validates_format_of, #validates_inclusion_of, #validates_length_of, #validates_numericality_of, #validates_presence_of, #validates_true_for
Instance Method Details
#all_validations ⇒ Object
29 30 31 32 33 34 |
# File 'lib/validatable/validatable.rb', line 29 def all_validations if self.respond_to?(:superclass) && self.superclass.respond_to?(:all_validations) return validations + self.superclass.all_validations end validations end |
#validations ⇒ Object
36 37 38 |
# File 'lib/validatable/validatable.rb', line 36 def validations @validations ||= [] end |