Sha256: 50c2aacf85406b331bf824062a4026c4e7464e23df3e8b329a6741951c5fd76f
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 Bytes
Contents
require 'active_model' class User include ActiveModel::Validations validates_acceptance_of :eula validates_acceptance_of :terms_of_service, accept: true validates_confirmation_of :password validates_format_of :email, with: /^([^\s]+)((?:[-a-z0-9]\.)[a-z]{2,})$/i validates_length_of :name, minimum: 10, maximum: 100 validates_length_of :password, is: 8 validates_size_of :lastname, maximum: 100 validates_presence_of :name end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minitest-activemodel-0.0.1 | test/models/user.rb |