mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 22:36:50 +00:00
It will fail the build, but as it is currently, most of the cops are 'todos'. Great for new contributors.. :)
9 lines
252 B
Plaintext
9 lines
252 B
Plaintext
<% module_namespacing do -%>
|
|
class <%= class_name %>Serializer < <%= parent_class_name %>
|
|
attributes <%= attributes_names.map(&:inspect).join(", ") %>
|
|
<% association_names.each do |attribute| -%>
|
|
has_one :<%= attribute %>
|
|
<% end -%>
|
|
end
|
|
<% end -%>
|