Sha256: a572a76bfc83a13abea14554662dce34ae2ea3f9f823d70868bac0aa0fb7fc3a

Contents?: true

Size: 252 Bytes

Versions: 60

Compression:

Stored size: 252 Bytes

Contents

<% 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 -%>

Version data entries

60 entries across 60 versions & 4 rubygems

Version Path
active_model_serializers-0.9.3 lib/active_model/serializer/generators/serializer/templates/serializer.rb
active_model_serializers-0.9.2 lib/active_model/serializer/generators/serializer/templates/serializer.rb
active_model_serializers-0.9.1 lib/active_model/serializer/generators/serializer/templates/serializer.rb
active_model_serializers-0.9.0 lib/active_model/serializer/generators/serializer/templates/serializer.rb
gpi-active_model_serializers-0.8.5 lib/generators/serializer/templates/serializer.rb
gpi-active_model_serializers-0.8.5.alpha1 lib/generators/serializer/templates/serializer.rb
gpi-active_model_serializers-0.8.4 lib/generators/serializer/templates/serializer.rb
gpi-active_model_serializers-0.8.4.alpha5 lib/generators/serializer/templates/serializer.rb
gpi-active_model_serializers-0.8.4.alpha4 lib/generators/serializer/templates/serializer.rb
gpi-active_model_serializers-0.8.4.alpha3 lib/generators/serializer/templates/serializer.rb
gpi-active_model_serializers-0.8.4.alpha2 lib/generators/serializer/templates/serializer.rb
gpi-active_model_serializers-0.8.4.alpha1 lib/generators/serializer/templates/serializer.rb
gpi-active_model_serializers-0.8.3.rc1 lib/generators/serializer/templates/serializer.rb
gpi-active_model_serializers-0.8.3.alpha2 lib/generators/serializer/templates/serializer.rb
gpi-active_model_serializers-0.8.3.alpha1 lib/generators/serializer/templates/serializer.rb
gpi-active_model_serializers-0.8.2 lib/generators/serializer/templates/serializer.rb
active_model_serializers-0.9.0.alpha1 lib/active_model/serializer/generators/serializer/templates/serializer.rb
active_model_serializers-0.7.0 lib/generators/serializer/templates/serializer.rb
active_model_serializers-0.6.0 lib/generators/serializer/templates/serializer.rb
active_model_serializers-0.5.2 lib/generators/serializer/templates/serializer.rb