On Tue, Nov 30, 2010 at 3:27 PM, Konstantin Haase <[email protected]> wrote: > Why not override #close in ActionDispatch::Response to avoid this issue?
I agree that would fix this particular issue. My reluctance with that is that AD::Response#body would remain a dangerous method on its own, because it does not obey the semantics established by the base class. It's a Liskov Substitution Principle violation -- AD::Response cannot be safely substituted where Rack::Response is expected. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
