Permalink
Browse files

Getting rid of deprecated ActiveSupport::SecureRandom.

Rails has deprecated SecureRandom from ActiveSupport in 3.1
Rails has removed SecureRandom from ActiveSupport in 3.2
  • Loading branch information...
1 parent 6883762 commit c75e9f8d889eacf14e16feb74e78dd72469b69f0 @zlu zlu 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 c75e9f8

Please sign in to comment.