This project is archived and is in readonly mode.

#1268 ✓resolved
CancelProfileIsBroken

Raise correct error on attempt to access private method of AR object

Reported by CancelProfileIsBroken | October 24th, 2008 @ 09:58 PM | in 2.x

The attached patch fixes a problem in Rails' response to attempting to access a private method of an Active Record object.

The existing tests were actually passing by coincidence - the code was in fact raising NoMethodError, but it was doing so because there is not a method named NoMethodError. The intended exception was not getting raised due to improper syntax in the code.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages