diff options
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/application.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 320da8f100..6ab13b18e0 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -162,13 +162,13 @@ module Rails # # 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) + # message = Rails.application.message_verifier.generate('my sensible data') + # Rails.application.message_verifier.verify(message) # # => 'my sensible data' # # See the +ActiveSupport::MessageVerifier+ documentation to more information. - def verifier - @verifier ||= begin + def message_verifier + @message_verifier ||= begin if config.respond_to?(:message_verifier_salt) salt = config.message_verifier_salt end |