On 28 Jan 2010, at 17:49, Rick DeNatale wrote:
Not sure if I can easily do this
Just ran into a bug in a rails app where ApplicationController
overrides rescue_action_in_public leading to the error page not being
displayed.
The fix was to call super at the end of the method.
I'd like
Not sure if I can easily do this
Just ran into a bug in a rails app where ApplicationController
overrides rescue_action_in_public leading to the error page not being
displayed.
The fix was to call super at the end of the method.
I'd like to write a spec to ensure that this doesn't regress, but
On Jan 28, 2010, at 5:49 pm, Rick DeNatale wrote:
I'd like to write a spec to ensure that this doesn't regress, but my
imagination is failing me as to how to do it.
Any ideas?
Yes: don't use inheritance for implementations. The bug you describe is
arguably a violation of the Liskov