Skip to content

Commit

Permalink
Fix indentation and newlines in generated engine
Browse files Browse the repository at this point in the history
  • Loading branch information
drogus committed Dec 14, 2010
1 parent 79e6c7d commit 34d1e5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion railties/lib/rails/generators/named_base.rb
Expand Up @@ -42,7 +42,7 @@ def indent(content, multiplier = 2)
end

def wrap_with_namespace(content)
content = indent(content)
content = indent(content).chomp
"module #{namespace.name}\n#{content}\nend\n"
end

Expand Down
@@ -1,7 +1,7 @@
module <%= camelized %>
class Engine < Rails::Engine
<% if mountable? -%>
isolate_namespace <%= camelized %>
isolate_namespace <%= camelized %>
<% end -%>
end
end

0 comments on commit 34d1e5d

Please sign in to comment.