This project is archived and is in readonly mode.

#6328 ✓resolved
Mike Gehard

Give more information about validation methods that need to be overridden

Reported by Mike Gehard | January 24th, 2011 @ 12:47 AM

ActiveModel::Validator and ActiveModel::EachValidator require subclasses to implement different methods. Currently these methods simply throw a NotImplementedError without any description of what needs to be implemented.

This patch adds some extra text to the exceptions to give the developer a better idea of what needs to be implemented in the subclasses.

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>

Referenced by

Pages