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


                                             

                                
 
                                         
 
                                                        
   
class Visitor
  extend ActiveModel::Callbacks
  include ActiveModel::Validations
  include ActiveModel::SecurePassword
  include ActiveModel::MassAssignmentSecurity
  
  define_model_callbacks :create

  has_secure_password(validations: false)

  attr_accessor :password_digest, :password_confirmation
end