Module: ActiveModel::Validations::ClassMethods

Defined in:
lib/client_side_validations/rails_2/active_record/active_model/validations.rb,
lib/client_side_validations/rails_2/active_record/active_model/validations.rb

Instance Method Summary collapse

Instance Method Details

#_validatorsObject



3
4
5
# File 'lib/client_side_validations/rails_2/active_record/active_model/validations.rb', line 3

def _validators
  @_validators ||= Hash.new { |hash, key| hash[key] = [] }
end

#validates_size_of(*attr_names) ⇒ Object



52
53
54
# File 'lib/client_side_validations/rails_2/active_record/active_model/validations.rb', line 52

def validates_size_of(*attr_names)
  validates_length_of(*attr_names)
end