Simplify partial rendering when the partial is named after the model

This commit is contained in:
Andy Allan 2019-06-26 14:13:09 +02:00
parent 5b4636d521
commit 3914050fcc
17 changed files with 17 additions and 23 deletions

View file

@ -33,7 +33,7 @@
</tr>
</thead>
<tbody>
<%= render :partial => "trace", :collection => @traces unless @traces.nil? %>
<%= render @traces unless @traces.nil? %>
</tbody>
</table>