rails/activemodel/test/models/visitor.rb

12 lines
258 B
Ruby

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