Permalink
Browse files

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

  • Loading branch information...
jeremy committed Jan 27, 2009
1 parent e73445b commit 9714a9b0019e6ca0e120a253037fa8a561b22823
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/rewindable_input.rb
@@ -3,12 +3,12 @@ class RewindableInput
class RewindableIO < ActiveSupport::BasicObject
def initialize(io)
@io = io
- @rewindable = io.is_a?(StringIO)
+ @rewindable = io.is_a?(::StringIO)
end
def method_missing(method, *args, &block)
unless @rewindable
- @io = StringIO.new(@io.read)
+ @io = ::StringIO.new(@io.read)
@rewindable = true
end

0 comments on commit 9714a9b

Please sign in to comment.