aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorrobertomiranda <rjmaltamar@gmail.com>2014-12-28 17:24:10 -0500
committerrobertomiranda <rjmaltamar@gmail.com>2015-01-04 11:31:37 -0500
commit5a58ba3366ec6092fcd0e69340acd93f347d2576 (patch)
tree15aadec84d8cd0749aeac947cdeafcdb52bbdf9a /activerecord/test/models
parent6489a84eb69162ccefac106d08bae1c31a2b4fa5 (diff)
downloadrails-5a58ba3366ec6092fcd0e69340acd93f347d2576.tar.gz
rails-5a58ba3366ec6092fcd0e69340acd93f347d2576.tar.bz2
rails-5a58ba3366ec6092fcd0e69340acd93f347d2576.zip
Add has_secure_token to Active Record
Update SecureToken Docs Add Changelog entry for has_secure_token [ci skip]
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/user.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/models/user.rb b/activerecord/test/models/user.rb
new file mode 100644
index 0000000000..23cd2e0e1c
--- /dev/null
+++ b/activerecord/test/models/user.rb
@@ -0,0 +1,4 @@
+class User < ActiveRecord::Base
+ has_secure_token
+ has_secure_token :auth_token
+end