instance method
each_with_hack
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
each_with_hack()
No documentation comment.
Source
# File actionpack/lib/action_controller/rack_lint_patch.rb, line 11
def each_with_hack
@closed = false
@body.each { |part|
assert("Body yielded non-string value #{part.inspect}") {
part.kind_of?(String)
}
yield part
}
if @body.respond_to?(:to_path)
assert("The file identified by body.to_path does not exist") {
::File.exist? @body.to_path
}
end
end
Defined in actionpack/lib/action_controller/rack_lint_patch.rb line 11
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in RackLintPatch::AllowStringSubclass