aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/command_line.textile
diff options
context:
space:
mode:
authorxyctka@gmail.com <xyctka@gmail.com>2012-04-06 10:01:34 +0100
committerxyctka@gmail.com <xyctka@gmail.com>2012-04-06 10:01:34 +0100
commit74fa0d3db0c364f91d8a9a8ab0741d5787531890 (patch)
tree4d6e82ad223a9c11c0e68d7f606c1b13627c7ba0 /guides/source/command_line.textile
parentb11113f924d2eb2acbe836954d17a02163f45275 (diff)
downloadrails-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/command_line.textile')
0 files changed, 0 insertions, 0 deletions