Sha256: e142cf0594deada6b8bbe0545ea535b03ef2ac996635f6dcbe93e1a9afd78a48

Contents?: true

Size: 296 Bytes

Versions: 7

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true
module UserValidation
  extend ActiveSupport::Concern

  included do
    validates :email, presence: true
    validates :encrypted_password, presence: true
    validates :sign_in_count, presence: true, numericality: true
    validates_uniqueness_of :email
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
model_base_generators-0.4.0 examples/rails-5.0/app/validations/user_validation.rb
model_base_generators-0.3.9 example/app/validations/user_validation.rb
model_base_generators-0.3.8 example/app/validations/user_validation.rb
model_base_generators-0.3.7 example/app/validations/user_validation.rb
model_base_generators-0.3.6 example/app/validations/user_validation.rb
model_base_generators-0.3.5 example/app/validations/user_validation.rb
model_base_generators-0.3.4 example/app/validations/user_validation.rb