Merge pull request #971 from bf4/readd_has_one_to_generator

Restore has_one to generator
This commit is contained in:
João Moura
2015-06-25 18:37:52 -03:00
2 changed files with 2 additions and 2 deletions

View File

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