aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/cgi_ext/stdinput.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-01-27 18:17:39 -0600
committerJoshua Peek <josh@joshpeek.com>2009-01-27 18:17:39 -0600
commita0f2b1d95d3785de92ae271fd7ea23e91c0cadc6 (patch)
treee125027e317889e6402dac147e03fc112c129aec /actionpack/lib/action_controller/cgi_ext/stdinput.rb
parenteb9af20b7cc0e374277cf330bdd404f9daab28ec (diff)
downloadrails-a0f2b1d95d3785de92ae271fd7ea23e91c0cadc6.tar.gz
rails-a0f2b1d95d3785de92ae271fd7ea23e91c0cadc6.tar.bz2
rails-a0f2b1d95d3785de92ae271fd7ea23e91c0cadc6.zip
Reorganize ActionController folder structure
Diffstat (limited to 'actionpack/lib/action_controller/cgi_ext/stdinput.rb')
-rw-r--r--actionpack/lib/action_controller/cgi_ext/stdinput.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/stdinput.rb b/actionpack/lib/action_controller/cgi_ext/stdinput.rb
deleted file mode 100644
index 5e9b6784af..0000000000
--- a/actionpack/lib/action_controller/cgi_ext/stdinput.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-require 'cgi'
-
-module ActionController
- module CgiExt
- # Publicize the CGI's internal input stream so we can lazy-read
- # request.body. Make it writable so we don't have to play $stdin games.
- module Stdinput
- def self.included(base)
- base.class_eval do
- remove_method :stdinput
- attr_accessor :stdinput
- end
-
- base.alias_method_chain :initialize, :stdinput
- end
-
- def initialize_with_stdinput(type = nil, stdinput = $stdin)
- @stdinput = stdinput
- @stdinput.set_encoding(Encoding::BINARY) if @stdinput.respond_to?(:set_encoding)
- initialize_without_stdinput(type || 'query')
- end
- end
- end
-end