Sha256: 61bcae0980baf6371d61af3acf629ff23bdacb83c0f226b39f75fff7c29f3b1b

Contents?: true

Size: 254 Bytes

Versions: 3

Compression:

Stored size: 254 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
cm-active_model_serializers-0.10.0.rc1.1 lib/generators/serializer/templates/serializer.rb
active_model_serializers-0.10.0.rc2 lib/generators/serializer/templates/serializer.rb
active_model_serializers-0.10.0.rc1 lib/generators/serializer/templates/serializer.rb