Sha256: ff8326e4be1fc1a746d58cf2a8b7141c36bfefb0b22ff5eeff282554bb643f4d
Contents?: true
Size: 599 Bytes
Versions: 69
Compression:
Stored size: 599 Bytes
Contents
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 initialize_without_stdinput(type || 'query') end end end end
Version data entries
69 entries across 69 versions & 4 rubygems