aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/visitor.rb
blob: 4d7f4be097ff1284e22a9f22bf6b3dbaf6c2a61a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class Visitor
  extend ActiveModel::Callbacks
  include ActiveModel::Validations
  include ActiveModel::SecurePassword

  define_model_callbacks :create

  has_secure_password(validations: false)

  attr_accessor :password_digest, :password_confirmation
end