]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/note.html.erb
Fix erblint warning
[rails.git] / app / views / browse / note.html.erb
index f94fda12ab26e3ecf7b6fcf94b35584b6a1ac1d5..d44e0bb3d86e154826cd57882c96c14c75fe1c17 100644 (file)
@@ -35,7 +35,7 @@
   <% if @note_comments.length > 1 %>
     <div class='note-comments'>
       <ul class="list-unstyled">
-        <% @note_comments[1..].each do |comment| %>
+        <% @note_comments.drop(1).each do |comment| %>
           <li id="c<%= comment.id %>">
             <small class='text-muted'><%= note_event(comment.event, comment.created_at, comment.author) %></small>
             <%= comment.body.to_html %>