Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 7cdb12286639b38db2eb1e9fd0c8b2e6bc3b39dc 2 parents a0ff270 + cc88fcf
Santiago Pastorino spastorino authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/generators/actions.rb
2  railties/lib/rails/generators/actions.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.