Fix erblint warning

This commit is contained in:
Tom Hughes 2020-11-17 09:23:22 +00:00
parent 2ecfd61ee9
commit 4e78f3ae5b

View file

@ -35,7 +35,7 @@
<% if @note_comments.length > 1 %> <% if @note_comments.length > 1 %>
<div class='note-comments'> <div class='note-comments'>
<ul class="list-unstyled"> <ul class="list-unstyled">
<% @note_comments[1..].each do |comment| %> <% @note_comments.drop(1).each do |comment| %>
<li id="c<%= comment.id %>"> <li id="c<%= comment.id %>">
<small class='text-muted'><%= note_event(comment.event, comment.created_at, comment.author) %></small> <small class='text-muted'><%= note_event(comment.event, comment.created_at, comment.author) %></small>
<%= comment.body.to_html %> <%= comment.body.to_html %>