diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-05-23 12:02:06 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-05-23 20:25:44 +0100 |
commit | d411c85a65baaf4ed268b1b1bb4df408cee4981a (patch) | |
tree | b054f3a4b95748b10e70c8d3a952e3b829366f2f /actionpack/lib/action_controller/metal/request_forgery_protection.rb | |
parent | a5fb1c61755f03a8c75b0a434fb2aca57502293b (diff) | |
download | rails-d411c85a65baaf4ed268b1b1bb4df408cee4981a.tar.gz rails-d411c85a65baaf4ed268b1b1bb4df408cee4981a.tar.bz2 rails-d411c85a65baaf4ed268b1b1bb4df408cee4981a.zip |
Replace references to ActiveSupport::SecureRandom with just SecureRandom, and require 'securerandom' from the stdlib when active support is required.
Diffstat (limited to 'actionpack/lib/action_controller/metal/request_forgery_protection.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/request_forgery_protection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb index 13044a7450..4d95f07e68 100644 --- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb +++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb @@ -96,7 +96,7 @@ module ActionController #:nodoc: # Sets the token value for the current session. def form_authenticity_token - session[:_csrf_token] ||= ActiveSupport::SecureRandom.base64(32) + session[:_csrf_token] ||= SecureRandom.base64(32) end # The form's authenticity parameter. Override to provide your own. |