Permalink
Browse files

Merge pull request #4765 from vijaydev/fix_4764

Fixes #4764 - remove generated new line in routes.rb on scaffold generation
  • Loading branch information...
2 parents a0ff270 + cc88fcf commit 7cdb12286639b38db2eb1e9fd0c8b2e6bc3b39dc @spastorino spastorino committed Jan 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/generators/actions.rb
@@ -246,7 +246,7 @@ def route(routing_code)
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

0 comments on commit 7cdb122

Please sign in to comment.