Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hightlight message verifier in the release notes [ci skip]

  • Loading branch information...
commit f56e51d4e43f257b85cff3e9479564890f1317f8 1 parent 48c703b
@rafaelfranca rafaelfranca authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 guides/source/4_1_release_notes.md
View
11 guides/source/4_1_release_notes.md
@@ -124,6 +124,17 @@ See
[active_record/enum.rb](https://github.com/rails/rails/blob/4-1-stable/activerecord/lib/active_record/enum.rb#L2-L42)
for a detailed write up.
+### Application message verifier.
+
+Create a message verifier that can be used to generate and verify signed
+messages in the application.
+
+```ruby
+message = Rails.application.message_verifier('salt').generate('my sensible data')
+Rails.application.message_verifier('salt').verify(message)
+# => 'my sensible data'
+```
+
Documentation
-------------
Please sign in to comment.
Something went wrong with that request. Please try again.