<% finder = finder.present(self) unless finder.class < Kadmin::Presenter %> { "more": <%= finder.pager.next_page? %>, "items": <% if block_given? %> [ <%= safe_join(finder.results.map { |object| capture { yield(object) } }, ',') %> ] <% else %> <%= raw(finder.results.map(&:attributes).to_json) %> <% end %> }