aboutsummaryrefslogblamecommitdiffstats
path: root/activemodel/test/models/visitor.rb
blob: 9da004ffcc138dd0f5f43e81bccf4a6955c0c2c4 (plain) (tree)
1
2
3
4
5
6
7
8
9

                             
             
                               
                                     
 
                                
 
                                         
 
                                                        
   
# frozen_string_literal: true

class Visitor
  extend ActiveModel::Callbacks
  include ActiveModel::SecurePassword

  define_model_callbacks :create

  has_secure_password(validations: false)

  attr_accessor :password_digest, :password_confirmation
end