This project is archived and is in readonly mode.

#3564 ✓resolved
José Valim

ActiveRercord::Error broke errors.add(attribute, type, :default => message)

Reported by José Valim | December 11th, 2009 @ 09:20 PM | in 2.3.6

Previously, this worked:

errors.add(:email, :not_found, :default => "not found")

Today, it does not work because it completely ignores the :not_found type and does the I18n lookup using "not found" instead. A patch with a fix and test case is attached.

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

Referenced by

Pages