Sha256: 0a9eb5640c206d5cb56c5f123ad183a688ff8da2644108c4a02b0b45e6fc1ef4
Contents?: true
Size: 280 Bytes
Versions: 2
Compression:
Stored size: 280 Bytes
Contents
require "email_validator" class User < ActiveRecord::Base has_many :roles validates :name, :length => {:in => 2..255} validates :name, :uniqueness => true, :presence => true validates :name, :format => {:with => /\A[A-z]+\Z/} validates :email, :email => true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gettext_simple_rails-0.0.9 | spec/dummy/app/models/user.rb |
gettext_simple_rails-0.0.8 | spec/dummy/app/models/user.rb |