fix generators template bug

This commit is contained in:
regonn 2015-06-30 18:16:27 +09:00
parent 059409b0b9
commit 5f300a0d42

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 -%>