module Authenticateable

Model concern to provide shared behaviour for authenticating records.

Automatically generated by the orthodox gem (github.com/katanacode/orthodox) © Copyright 2019 Katana Code Ltd. All Rights Reserved.

Constants

MAXIMUM_PASSWORD_LENGTH
MINIMUM_PASSWORD_LENGTH

Private Instance Methods

validate_presence_of_password?() click to toggle source
# File lib/generators/authentication/templates/models/concerns/authenticateable.rb, line 30
def validate_presence_of_password?
  new_record? || changes.include?("password")
end