diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-15 13:26:50 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-15 13:26:50 +0100 |
commit | 576b58803635de9d16dd7cd1c2a68b692ba11743 (patch) | |
tree | bfddbeaad716b5eeabebb0dc28e11370ba7f89f0 /config/initializers/gettext_i18n_rails.rb | |
parent | 7d9de8a5ffe67e6bc49271a082c1d8e43dbb0f03 (diff) |
Add source file encoding for all ruby files.
This is important under ruby 1.9 in order to determine the
encoding that will be used for new strings created in the code in
the file.
Diffstat (limited to 'config/initializers/gettext_i18n_rails.rb')
-rw-r--r-- | config/initializers/gettext_i18n_rails.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/gettext_i18n_rails.rb b/config/initializers/gettext_i18n_rails.rb index ef306682b..3beb2e58b 100644 --- a/config/initializers/gettext_i18n_rails.rb +++ b/config/initializers/gettext_i18n_rails.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # FIXME: Audit the translations for XSS opportunities. Ultimately it would be # good to get rid of this and explicitly mark strings as html_safe GettextI18nRails.translations_are_html_safe = true |