lib/generators/redmine_extensions/entity/templates/index.api.rsb.erb in redmine_extensions-0.3.00 vs lib/generators/redmine_extensions/entity/templates/index.api.rsb.erb in redmine_extensions-0.3.2

- old
+ new

@@ -1,5 +1,3 @@ api.array :<%= model_name_pluralize_underscored %>, api_meta(total_count: @entity_count, offset: @offset, limit: @limit) do - @entities.each do |<%= model_name_underscored %>| - render_api_<%= model_name_underscored %>(api, <%= model_name_underscored %>) - end -end + render(@entities, {api: api}) +end \ No newline at end of file