diff options
author | xyctka@gmail.com <xyctka@gmail.com> | 2012-04-06 10:01:34 +0100 |
---|---|---|
committer | xyctka@gmail.com <xyctka@gmail.com> | 2012-04-06 10:01:34 +0100 |
commit | 74fa0d3db0c364f91d8a9a8ab0741d5787531890 (patch) | |
tree | 4d6e82ad223a9c11c0e68d7f606c1b13627c7ba0 /guides/source/generators.textile | |
parent | b11113f924d2eb2acbe836954d17a02163f45275 (diff) | |
download | rails-74fa0d3db0c364f91d8a9a8ab0741d5787531890.tar.gz rails-74fa0d3db0c364f91d8a9a8ab0741d5787531890.tar.bz2 rails-74fa0d3db0c364f91d8a9a8ab0741d5787531890.zip |
Update Custom Exception Handler section of Internationalization guide
The previous example with just_raise_that_exception method
stopped working because MissingTranslation is not an instance of
Exception class any more, but has a +to_exception+ method.
Also the cleaner way is to re-raise only the desired exception, passing
everything else to the default ExceptionHandler.
Additionally this re-raising conflicts with Pluralization backend thus
we have to add a check that certain missing translation keys should
be ignored allowing the backend to fall back to the default
pluralization rule.
Diffstat (limited to 'guides/source/generators.textile')
0 files changed, 0 insertions, 0 deletions