Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

I18n: Fix AR validation tests re deprecated interpolation syntax

#1016

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

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

State: committed
Milestone: none
Assigned to: nobody
Importance: none