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