From f56e51d4e43f257b85cff3e9479564890f1317f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 4 Dec 2013 23:17:18 -0200 Subject: Hightlight message verifier in the release notes [ci skip] --- guides/source/4_1_release_notes.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/guides/source/4_1_release_notes.md b/guides/source/4_1_release_notes.md index 99d2a8c117..b3cd560de0 100644 --- a/guides/source/4_1_release_notes.md +++ b/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 ------------- -- cgit v1.2.3