<% module_namespacing do -%>
class <%= class_name %>Serializer < <%= parent_class_name %>
  <% if attributes.present? -%>
  attributes <%= attributes.map { |a| a.name.to_sym.inspect }.join(', ') %>
  <% end %>
end
<% end -%>

<% module_namespacing do -%>
class <%= class_name %>Serializer < <%= parent_class_name %>
  <% if attributes.present? %>
  attributes <%= attributes.map { |a| a.name.to_sym.inspect }.join(', ') %>
  <% end %>
end
<% end -%>

Fix the whitespace during attributes generation
Fix the whitespace during attributes generation
