Sha256: fa2d567bebe9c2ae304ccbc2a7f676f515a69db5eeb128e3162a0abb53274abe

Contents?: true

Size: 338 Bytes

Versions: 22

Compression:

Stored size: 338 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
kadmin-1.3.0 app/views/kadmin/components/_finder.js.erb
kadmin-1.2.1 app/views/kadmin/components/_finder.js.erb
kadmin-1.2.0 app/views/kadmin/components/_finder.js.erb
kadmin-1.1.1 app/views/kadmin/components/_finder.js.erb
kadmin-1.1.0 app/views/kadmin/components/_finder.js.erb
kadmin-1.0.9 app/views/kadmin/components/_finder.js.erb
kadmin-1.0.8 app/views/kadmin/components/_finder.js.erb
kadmin-1.0.7 app/views/kadmin/components/_finder.js.erb
kadmin-1.0.6 app/views/kadmin/components/_finder.js.erb
kadmin-1.0.5 app/views/kadmin/components/_finder.js.erb
kadmin-1.0.4 app/views/kadmin/components/_finder.js.erb
kadmin-1.0.3 app/views/kadmin/components/_finder.js.erb
kadmin-1.0.2 app/views/kadmin/components/_finder.js.erb
kadmin-1.0.1 app/views/kadmin/components/_finder.js.erb
kadmin-1.0.0 app/views/kadmin/components/_finder.js.erb
kadmin-0.9.5 app/views/kadmin/components/_finder.js.erb
kadmin-0.9.4 app/views/kadmin/components/_finder.js.erb
kadmin-0.8.0 app/views/kadmin/components/_finder.js.erb
kadmin-0.7.5 app/views/kadmin/components/_finder.js.erb
kadmin-0.7.4 app/views/kadmin/components/_finder.js.erb