Permalink
Browse files

use strip_heredoc to keep indentation consistent.

Thanks @sikachu. ❤️
  • Loading branch information...
1 parent 33310fb commit 13c9195b12e2a6c87056d24968f092ba97e14364 @steveklabnik steveklabnik committed Feb 19, 2013
Showing with 12 additions and 12 deletions.
  1. +12 −12 actionpack/lib/action_dispatch/routing/inspector.rb
@@ -167,13 +167,13 @@ def header(routes)
end
def no_routes
- @buffer << <<-MESSAGE
-You don't have any routes defined!
+ @buffer << <<-MESSAGE.strip_heredoc
+ You don't have any routes defined!
-Please add some routes in config/routes.rb.
+ Please add some routes in config/routes.rb.
-For more information about routes, see the Rails Guide: http://guides.rubyonrails.org/routing.html .
-MESSAGE
+ For more information about routes, see the Rails Guide: http://guides.rubyonrails.org/routing.html .
+ MESSAGE
end
private
@@ -213,13 +213,13 @@ def section(routes)
end
def no_routes
- @buffer << <<-MESSAGE
-<p>You don't have any routes defined!</p>
-<ul>
-<li>Please add some routes in config/routes.rb.</li>
-<li>For more information about routes, please <a href="http://guides.rubyonrails.org/routing.html">see the Rails Guide</a>.</li>
-</ul>
-MESSAGE
+ @buffer << <<-MESSAGE.strip_heredoc
+ <p>You don't have any routes defined!</p>
+ <ul>
+ <li>Please add some routes in config/routes.rb.</li>
+ <li>For more information about routes, please <a href="http://guides.rubyonrails.org/routing.html">see the Rails Guide</a>.</li>
+ </ul>
+ MESSAGE
end
def result

2 comments on commit 13c9195

Member

steveklabnik replied Feb 19, 2013

Looks like @carlosantoniodasilva saved me: f994530

Please sign in to comment.