Skip to content
This repository
Browse code

Use toplevel reference to ::StringIO since we're in a BasicObject.

  • Loading branch information...
commit 9714a9b0019e6ca0e120a253037fa8a561b22823 1 parent e73445b
Jeremy Kemper authored January 27, 2009
4  actionpack/lib/action_controller/rewindable_input.rb
@@ -3,12 +3,12 @@ class RewindableInput
3 3
     class RewindableIO < ActiveSupport::BasicObject
4 4
       def initialize(io)
5 5
         @io = io
6  
-        @rewindable = io.is_a?(StringIO)
  6
+        @rewindable = io.is_a?(::StringIO)
7 7
       end
8 8
 
9 9
       def method_missing(method, *args, &block)
10 10
         unless @rewindable
11  
-          @io = StringIO.new(@io.read)
  11
+          @io = ::StringIO.new(@io.read)
12 12
           @rewindable = true
13 13
         end
14 14
 

0 notes on commit 9714a9b

Please sign in to comment.
Something went wrong with that request. Please try again.