Sha256: 8aecb0b669eca5d948c54abca24aeb5f5363886dc1f8e529d8efb219a6b0e4bf

Contents?: true

Size: 186 Bytes

Versions: 17

Compression:

Stored size: 186 Bytes

Contents

class User < ActiveRecord::Base
  belongs_to :job

  validates :job, presence: true
  validates :password, presence: true
  validates :email, format: { with: /\A[^@\s]+@[^@\s]+\z/ }
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
eac_rails_utils-0.8.0 test/dummy/app/models/user.rb
eac_rails_utils-0.7.1 test/dummy/app/models/user.rb
eac_rails_utils-0.7.0 test/dummy/app/models/user.rb
eac_rails_utils-0.6.0 test/dummy/app/models/user.rb
eac_rails_utils-0.5.0 test/dummy/app/models/user.rb
eac_rails_utils-0.4.0 test/dummy/app/models/user.rb
eac_rails_utils-0.3.0 test/dummy/app/models/user.rb
eac_rails_utils-0.2.2 test/dummy/app/models/user.rb
eac_rails_utils-0.2.1 test/dummy/app/models/user.rb
eac_rails_utils-0.2.0 test/dummy/app/models/user.rb
eac_rails_utils-0.1.15 test/dummy/app/models/user.rb
eac_rails_utils-0.1.14 test/dummy/app/models/user.rb
eac_rails_utils-0.1.13 test/dummy/app/models/user.rb
eac_rails_utils-0.1.12 test/dummy/app/models/user.rb
eac_rails_utils-0.1.11 test/dummy/app/models/user.rb
eac_rails_utils-0.1.10 test/dummy/app/models/user.rb
eac_rails_utils-0.0.1 test/dummy/app/models/user.rb