rails/rails — pull request #5902 by avakhov (2012-04-19 14:35:51+00:00)
Title: Don't indent blank lines in named base generators

This method is not documented, but I use it in my generators.

``` ruby
code = <<-ROUTES.strip_heredoc
get "admin/login"

get "admin/logout"
ROUTES

route indent(code).strip
```

And this code also used for example here: https://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb#L1