aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/user.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-05-17 10:32:15 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-05-17 10:32:15 -0700
commit1b604c73f12ed11cf1f9bcc155f1fb89148bbe5c (patch)
treecd9c3f59fd165b874e8008139806eb33c05b6b09 /activemodel/test/models/user.rb
parentde29c3088b624d6a5109e073ef76079d84028abd (diff)
parentf0213773584f3c15b960098c59d84ea0aafc54aa (diff)
downloadrails-1b604c73f12ed11cf1f9bcc155f1fb89148bbe5c.tar.gz
rails-1b604c73f12ed11cf1f9bcc155f1fb89148bbe5c.tar.bz2
rails-1b604c73f12ed11cf1f9bcc155f1fb89148bbe5c.zip
Merge pull request #6215 from erichmenge/fix_has_secure_password
Fix has secure password
Diffstat (limited to 'activemodel/test/models/user.rb')
-rw-r--r--activemodel/test/models/user.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activemodel/test/models/user.rb b/activemodel/test/models/user.rb
index e221bb8091..4b11df12bf 100644
--- a/activemodel/test/models/user.rb
+++ b/activemodel/test/models/user.rb
@@ -1,6 +1,9 @@
class User
+ extend ActiveModel::Callbacks
include ActiveModel::Validations
include ActiveModel::SecurePassword
+
+ define_model_callbacks :create
has_secure_password