diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-01-27 09:44:07 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-01-27 15:25:05 -0800 |
commit | 9714a9b0019e6ca0e120a253037fa8a561b22823 (patch) | |
tree | fec4b47ebe4f53585d413ab6fb3760c776f28bdd | |
parent | e73445ba1b3a0e3561e41bbb932957be1eb9d869 (diff) | |
download | rails-9714a9b0019e6ca0e120a253037fa8a561b22823.tar.gz rails-9714a9b0019e6ca0e120a253037fa8a561b22823.tar.bz2 rails-9714a9b0019e6ca0e120a253037fa8a561b22823.zip |
Use toplevel reference to ::StringIO since we're in a BasicObject.
-rw-r--r-- | actionpack/lib/action_controller/rewindable_input.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/rewindable_input.rb b/actionpack/lib/action_controller/rewindable_input.rb index 36f655c51e..cedfb7fd75 100644 --- a/actionpack/lib/action_controller/rewindable_input.rb +++ b/actionpack/lib/action_controller/rewindable_input.rb @@ -3,12 +3,12 @@ module ActionController 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 |