Sha256: f7c93ea75f92409cb0e370ad60f3198520fe7ea6aa28eefb273b573f654de3e2

Contents?: true

Size: 361 Bytes

Versions: 5

Compression:

Stored size: 361 Bytes

Contents

<h3>ActiveRecord Objects</h3>
<table class="sortable">
<thead>
  <tr>
    <th>Count</th>
    <th>Class</th>
  </tr>
</thead>
<tbody>
  <% i = 1 %>
  <% records.each do |class_name, count| %>
    <tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
      <td><%= count %></td>
      <td><%= class_name %></td>
    </tr>
    <% i += 1 %>
  <% end %>
</tbody>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rack-insight-0.6.4 lib/rack/insight/views/panels/active_record.html.erb
rack-insight-0.6.3 lib/rack/insight/views/panels/active_record.html.erb
rack-insight-0.6.2 lib/rack/insight/views/panels/active_record.html.erb
rack-insight-0.5.30 lib/rack/insight/views/panels/active_record.html.erb
rack-insight-0.5.29 lib/rack/insight/views/panels/active_record.html.erb