freeze rails 2.3.10

This commit is contained in:
Reinier Balt 2011-02-04 17:11:33 +01:00
parent c94cf5f7ff
commit 25b522c6d4
1560 changed files with 212255 additions and 0 deletions

View file

@ -0,0 +1,29 @@
module ActionController
class StringCoercion
class UglyBody < ActiveSupport::BasicObject
def initialize(body)
@body = body
end
def each
@body.each do |part|
yield part.to_s
end
end
private
def method_missing(*args, &block)
@body.__send__(*args, &block)
end
end
def initialize(app)
@app = app
end
def call(env)
status, headers, body = @app.call(env)
[status, headers, UglyBody.new(body)]
end
end
end