aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/application.rb')
-rw-r--r--railties/lib/rails/application.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb
index ccd97af655..320da8f100 100644
--- a/railties/lib/rails/application.rb
+++ b/railties/lib/rails/application.rb
@@ -158,6 +158,15 @@ module Rails
end
end
+ # Return the application's message verifier.
+ #
+ # This verify can be used to generate and verify signed messages in the application.
+ #
+ # message = Rails.application.verifier.generate('my sensible data')
+ # Rails.application.verifier.verify(message)
+ # # => 'my sensible data'
+ #
+ # See the +ActiveSupport::MessageVerifier+ documentation to more information.
def verifier
@verifier ||= begin
if config.respond_to?(:message_verifier_salt)