Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rails config for raise on missing translations | Kassio Borges | 2014-01-27 | 1 | -4/+4 |
| | | | | | Add a config to setup whether raise exception for missing translation or not. | ||||
* | Escalate missing error when :raise is true | Shota Fukumori (sora_h) | 2013-12-05 | 1 | -1/+9 |
| | | | | | | | | | | | | | | Before ec16ba75a5493b9da972eea08bae630eba35b62f, ActionView::Helpers::TranslationHelper#translate has raised errors with specifying options[:raise] to true. This should work by this fix: begin t(:"translations.missing", raise: true) rescue I18n::MissingTranslationData p :hello! end | ||||
* | Stop using i18n's built in HTML error handling. | Michael Koziarski | 2013-12-02 | 1 | -13/+9 |
| | | | | | | | | | i18n doesn't depend on active support which means it can't use our html_safe code to do its escaping when generating the spans. Rather than try to sanitize the output from i18n, just revert to our old behaviour of rescuing the error and constructing the tag ourselves. Fixes: CVE-2013-4491 | ||||
* | Move actionpack/lib/action_view* into actionview/lib | Piotr Sarnacki | 2013-06-20 | 1 | -0/+107 |