This project is archived and is in readonly mode.

#1016 ✓committed
Sven Fuchs

I18n: Fix AR validation tests re deprecated interpolation syntax

Reported by Sven Fuchs | September 10th, 2008 @ 11:48 PM

ActiveRecord error messages use interpolation a lot. The previous %s and %d syntax has been deprecated in favor of the {{value}} and {{count}} syntax

Attached patches fix three things:

  • change activerecord validation tests to no more use the deprecated syntax (removes lots of deprecation warnings)
  • add tests to make sure the old behaviour is deprecated
  • add tests to make sure the old behaviour still works

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