mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Merge pull request #971 from bf4/readd_has_one_to_generator
Restore has_one to generator
This commit is contained in:
@@ -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 -%>
|
||||
|
||||
Reference in New Issue
Block a user