Sha256: 7d21f2a86728d3bb9c03e12626df4bea4f1b13a4f494a4ae789bd2b94386a30a

Contents?: true

Size: 324 Bytes

Versions: 7

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

require 'eac_rails_utils/models/attribute_required'

class User < ActiveRecord::Base
  include ::EacRailsUtils::Models::AttributeRequired

  belongs_to :job

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eac_rails_utils-0.11.6 test/dummy/app/models/user.rb
eac_rails_utils-0.11.5 test/dummy/app/models/user.rb
eac_rails_utils-0.11.4 test/dummy/app/models/user.rb
eac_rails_utils-0.11.3 test/dummy/app/models/user.rb
eac_rails_utils-0.11.2 test/dummy/app/models/user.rb
eac_rails_utils-0.11.1 test/dummy/app/models/user.rb
eac_rails_utils-0.11.0 test/dummy/app/models/user.rb