lib/rails/generators/actions.rb in railties-4.2.1.rc4 vs lib/rails/generators/actions.rb in railties-4.2.1

- old
+ new

@@ -220,10 +220,10 @@ def route(routing_code) log :route, routing_code sentinel = /\.routes\.draw do\s*\n/m in_root do - inject_into_file 'config/routes.rb', " #{routing_code}", { after: sentinel, verbose: false, force: true } + inject_into_file 'config/routes.rb', " #{routing_code}\n", { after: sentinel, verbose: false, force: true } end end # Reads the given file at the source root and prints it in the console. #