diff options
author | José Valim <jose.valim@gmail.com> | 2010-04-07 02:24:29 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-07 02:25:36 +0200 |
commit | ec73710c79c5e1587b489b2ce05cc34138acf071 (patch) | |
tree | 392de31a689ee63a30be491cf1f006ae91b4bd0b /railties/lib/rails/generators | |
parent | 48634bf59a0ed89cddd4a539c08866c9e025c5e3 (diff) | |
download | rails-ec73710c79c5e1587b489b2ce05cc34138acf071.tar.gz rails-ec73710c79c5e1587b489b2ce05cc34138acf071.tar.bz2 rails-ec73710c79c5e1587b489b2ce05cc34138acf071.zip |
Alleviate the pain in working with utf8 templates by setting a default encoding.
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/application.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/application.rb b/railties/lib/rails/generators/rails/app/templates/config/application.rb index bd4fedcdec..377e607d2b 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/application.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/application.rb @@ -46,6 +46,9 @@ module <%= app_const_base %> # g.test_framework :test_unit, :fixture => true # end + # Configure the default encoding used in templates for Ruby 1.9. + config.encoding = "utf-8" + # Configure sensitive parameters which will be filtered from the log file. config.filter_parameters << :password end |