Sha256: cc6318b4436ebf1fc72e094c770cc1d30679363e3ec15ccfb7b42bf915917586

Contents?: true

Size: 293 Bytes

Versions: 20

Compression:

Stored size: 293 Bytes

Contents

<%#
    headmin/table/body/association
    accepts block: no
    parameters:
      object: (ActiveRecord::Base) Model resource for which an association needs to be called
      attribute: (string) Name of the association
%>

<td>
  <%= t('.items', count: object.send(attribute).count) %>
</td>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
headmin-0.2.9 app/views/headmin/table/body/_association.html.erb
headmin-0.5.2 app/views/headmin/table/body/_association.html.erb
headmin-0.5.1 app/views/headmin/table/body/_association.html.erb
headmin-0.5.0 app/views/headmin/table/body/_association.html.erb
headmin-0.4.2 app/views/headmin/table/body/_association.html.erb
headmin-0.4.1 app/views/headmin/table/body/_association.html.erb
headmin-0.4.0 app/views/headmin/table/body/_association.html.erb
headmin-0.3.4 app/views/headmin/table/body/_association.html.erb
headmin-0.3.3 app/views/headmin/table/body/_association.html.erb
headmin-0.3.2 app/views/headmin/table/body/_association.html.erb
headmin-0.3.1 app/views/headmin/table/body/_association.html.erb
headmin-0.2.8 app/views/headmin/table/body/_association.html.erb
headmin-0.2.7 app/views/headmin/table/body/_association.html.erb
headmin-0.2.6 app/views/headmin/table/body/_association.html.erb
headmin-0.2.5 app/views/headmin/table/body/_association.html.erb
headmin-0.2.4 app/views/headmin/table/body/_association.html.erb
headmin-0.2.3 app/views/headmin/table/body/_association.html.erb
headmin-0.2.2 app/views/headmin/table/body/_association.html.erb
headmin-0.2.1 app/views/headmin/table/body/_association.html.erb
headmin-0.2.0 app/views/headmin/table/body/_association.html.erb