diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2012-04-19 18:29:40 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2012-04-25 12:01:33 +0400 |
commit | 6ac9e493fb14cf7f9ca426f1ddd077ece6dc581f (patch) | |
tree | 854afdde7bcfad2c3bc7eaaa4e8992aaec5cdfc0 /railties/lib/rails | |
parent | cd556c9388171bff263825d3066ef440a00d01b3 (diff) | |
download | rails-6ac9e493fb14cf7f9ca426f1ddd077ece6dc581f.tar.gz rails-6ac9e493fb14cf7f9ca426f1ddd077ece6dc581f.tar.bz2 rails-6ac9e493fb14cf7f9ca426f1ddd077ece6dc581f.zip |
Don't indent blank lines in named base generators
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/named_base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/named_base.rb b/railties/lib/rails/generators/named_base.rb index c457b5fbbc..e85d1b8fa2 100644 --- a/railties/lib/rails/generators/named_base.rb +++ b/railties/lib/rails/generators/named_base.rb @@ -40,7 +40,7 @@ module Rails def indent(content, multiplier = 2) spaces = " " * multiplier - content = content.each_line.map {|line| "#{spaces}#{line}" }.join + content = content.each_line.map {|line| line.blank? ? line : "#{spaces}#{line}" }.join end def wrap_with_namespace(content) |