Sha256: 0fd93e3579857368548bc1bb62d941885ec8a2db39da3e24340bd9afedb23f03

Contents?: true

Size: 277 Bytes

Versions: 3

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

<% module_namespacing do -%>
class <%= class_name %>Serializer < ApplicationSerializer
<% attributes.each do |attribute| -%>
    attribute :<%= attribute.name %>, predicate: LinkedRails.app_vocab[:<%= attribute.name %>]
<% end -%>
end
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
linked_rails-0.0.3 lib/generators/linked_rails/model/templates/serializer.rb.tt
linked_rails-0.0.2 lib/generators/linked_rails/model/templates/serializer.rb.tt
linked_rails-0.0.1 lib/generators/linked_rails/model/templates/serializer.rb.tt