diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-01-30 10:48:26 -0800 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-01-30 10:48:26 -0800 |
commit | 7cdb12286639b38db2eb1e9fd0c8b2e6bc3b39dc (patch) | |
tree | 83591474a77d5e52d34fee67e4c55d27920146a9 /railties/lib | |
parent | a0ff270ee1fa677a18c8532c3c5ae32c2f4ffa13 (diff) | |
parent | cc88fcfe39afa45679150ffb3f516a5936b41b97 (diff) | |
download | rails-7cdb12286639b38db2eb1e9fd0c8b2e6bc3b39dc.tar.gz rails-7cdb12286639b38db2eb1e9fd0c8b2e6bc3b39dc.tar.bz2 rails-7cdb12286639b38db2eb1e9fd0c8b2e6bc3b39dc.zip |
Merge pull request #4765 from vijaydev/fix_4764
Fixes #4764 - remove generated new line in routes.rb on scaffold generation
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/actions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb index 45f55a2a0a..32793b1a70 100644 --- a/railties/lib/rails/generators/actions.rb +++ b/railties/lib/rails/generators/actions.rb @@ -246,7 +246,7 @@ module Rails sentinel = /\.routes\.draw do\s*$/ in_root do - inject_into_file 'config/routes.rb', "\n #{routing_code}\n", { :after => sentinel, :verbose => false } + inject_into_file 'config/routes.rb', "\n #{routing_code}", { :after => sentinel, :verbose => false } end end |