Sha256: e712fa938b2dc11fbea446ce0c7d55a1b5ccbfea6c42c69d3041439cfa85f845

Contents?: true

Size: 226 Bytes

Versions: 4

Compression:

Stored size: 226 Bytes

Contents

class <%= GrapeResource.class_name_prefix %>::<%= name.camelize.pluralize %>::Entities::<%= name.camelize.singularize %> < Grape::Entity
  expose :id
remove<% @entities.each do |k, v| %>
  expose :<%= k %>
remove<% end %>
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grape_resource-0.1.11 lib/generators/templates/entities.rb.erb
grape_resource-0.1.10 lib/generators/templates/entities.rb.erb
grape_resource-0.1.6 lib/generators/templates/entities.rb.erb
grape_resource-0.1.5 lib/generators/templates/entities.rb.erb