diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2013-10-22 13:17:52 +0200 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2013-10-22 14:13:14 +0200 |
commit | 52b252614e275da799b6a15cebbfd067c59987d1 (patch) | |
tree | 941a7fc64fc84da3442b66338805829c16f6d16d /railties/CHANGELOG.md | |
parent | 99044beb8163d42d6f0bcf26c7215e209e7f2bc7 (diff) | |
download | rails-52b252614e275da799b6a15cebbfd067c59987d1.tar.gz rails-52b252614e275da799b6a15cebbfd067c59987d1.tar.bz2 rails-52b252614e275da799b6a15cebbfd067c59987d1.zip |
Make the application name snake cased when it contains spaces
The application name is used to fill the `database.yml` and
`session_store.rb` files ; previously, if the provided name contained
whitespaces, it led to unexpected names in these files.
Since Shellwords.escape adds backslashes to escape spaces, the app_name
should remove them and replace any space with an underscore (just like
periods previously).
Also improve the assert_file helper to work with paths containing spaces
using String#shellescape.
Diffstat (limited to 'railties/CHANGELOG.md')
-rw-r--r-- | railties/CHANGELOG.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 1d01c8d0e5..d12a1f21f8 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,11 @@ +* Make the application name snake cased when it contains spaces + + The application name is used to fill the `database.yml` and + `session_store.rb` files ; previously, if the provided name + contained whitespaces, it led to unexpected names in these files. + + *Robin Dupret* + * Added `--model-name` option to `ScaffoldControllerGenerator`. *yalab* |