aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/visitor.rb
blob: d15f4485169b63723553fa24625ac5d5f03f078f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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