Merge pull request #978 from regonn/fix-generators-template

fix generators template bug
This commit is contained in:
João Moura
2015-07-02 00:31:55 -03:00
2 changed files with 2 additions and 1 deletions

View File

@@ -1,8 +1,8 @@
<% module_namespacing do -%>
class <%= class_name %>Serializer < <%= parent_class_name %>
attributes <%= attributes_names.map(&:inspect).join(", ") %>
end
<% association_names.each do |attribute| -%>
has_one :<%= attribute %>
<% end -%>
end
<% end -%>