Permalink
Browse files

Merge pull request #15 from zlu/master

Getting rid of deprecated ActiveSupport::SecureRandom.
  • Loading branch information...
2 parents 6883762 + c75e9f8 commit c29e605549cad83c46087c3ca4888e151f725e77 @maccman committed Oct 19, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/nestful/formats/multipart_format.rb
@@ -1,4 +1,4 @@
-require 'active_support/secure_random'
+require 'securerandom'
module Nestful
module Formats
@@ -9,7 +9,7 @@ class MultipartFormat < Format
def initialize(*args)
super
- @boundary = ActiveSupport::SecureRandom.hex(10)
+ @boundary = SecureRandom.hex(10)
@stream = Tempfile.new("nf.#{rand(1000)}")
@stream.binmode
end
@@ -76,4 +76,4 @@ def filename(body)
end
end
end
-end
+end

0 comments on commit c29e605

Please sign in to comment.