aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/test/models/user.rb')
-rw-r--r--activemodel/test/models/user.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/activemodel/test/models/user.rb b/activemodel/test/models/user.rb
index 1ec6001c48..bb1b187694 100644
--- a/activemodel/test/models/user.rb
+++ b/activemodel/test/models/user.rb
@@ -1,10 +1,13 @@
+# frozen_string_literal: true
+
class User
extend ActiveModel::Callbacks
include ActiveModel::SecurePassword
-
+
define_model_callbacks :create
has_secure_password
+ has_secure_password :recovery_password, validations: false
- attr_accessor :password_digest
+ attr_accessor :password_digest, :recovery_password_digest
end