aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-05-23 12:02:06 +0100
committerJon Leighton <j@jonathanleighton.com>2011-05-23 20:25:44 +0100
commitd411c85a65baaf4ed268b1b1bb4df408cee4981a (patch)
treeb054f3a4b95748b10e70c8d3a952e3b829366f2f /activesupport/lib/active_support.rb
parenta5fb1c61755f03a8c75b0a434fb2aca57502293b (diff)
downloadrails-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 'activesupport/lib/active_support.rb')
-rw-r--r--activesupport/lib/active_support.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activesupport/lib/active_support.rb b/activesupport/lib/active_support.rb
index a846f81c12..63830d721a 100644
--- a/activesupport/lib/active_support.rb
+++ b/activesupport/lib/active_support.rb
@@ -21,6 +21,8 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
+require 'securerandom'
+
module ActiveSupport
class << self
attr_accessor :load_all_hooks
@@ -30,7 +32,7 @@ module ActiveSupport
self.load_all_hooks = []
on_load_all do
- [Dependencies, Deprecation, Gzip, MessageVerifier, Multibyte, SecureRandom]
+ [Dependencies, Deprecation, Gzip, MessageVerifier, Multibyte]
end
end