Replace has_one with attribute in template

This commit is contained in:
Benjamin Fleischer
2015-02-25 14:20:18 -06:00
parent a8243761fe
commit 79653ac733
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| -%>
has_one :<%= attribute %>
attribute :<%= attribute %>
<% end -%>
<% end -%>