This project is archived and is in readonly mode.
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
-
Sven Fuchs September 10th, 2008 @ 11:48 PM
- no changes were found...
-
Jeremy Kemper September 11th, 2008 @ 12:21 AM
- Milestone cleared.
- State changed from new to open
Thanks Sven!
-
Repository September 11th, 2008 @ 03:29 AM
- State changed from open to committed
(from [e826c992014b24475203bf1a88b3f7a2356f7ff5]) add activerecord tests to make sure the deprecated %s and %d interpolation syntax still works
[#1016 state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...
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
Tags
Referenced by
- 1016 I18n: Fix AR validation tests re deprecated interpolation syntax [#1016 state:committed]