]> git.openstreetmap.org Git - rails.git/commitdiff
rubocop and erblint fixes
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 May 2019 15:09:51 +0000 (17:09 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 29 May 2019 15:09:51 +0000 (17:09 +0200)
.rubocop_todo.yml
app/views/diary_entries/edit.html.erb
app/views/diary_entries/new.html.erb

index f989d393d21b145266974809a700885a9834f15e..d63584223f2dba242dbd7f469aeb63b1306478e0 100644 (file)
@@ -40,7 +40,7 @@ Metrics/AbcSize:
 # Configuration parameters: CountComments, ExcludedMethods.
 # ExcludedMethods: refine
 Metrics/BlockLength:
-  Max: 262
+  Max: 263
 
 # Offense count: 11
 # Configuration parameters: CountBlocks.
index eba18cbaf0904e44d1aee4408850a4c9fa875584..5ea6193280c357e5d55e2036df03aad1da49bdfe 100644 (file)
@@ -9,5 +9,5 @@
 <%= error_messages_for "diary_entry" %>
 
 <%= form_for @diary_entry, :url => diary_entry_path(current_user, @diary_entry), :html => { :method => :put } do |f| %>
-  <%= render :partial => "form", :locals =>  { :f => f } %>
+  <%= render :partial => "form", :locals => { :f => f } %>
 <% end %>
index d71331fcf999d9451f0ff6419d8b92683b6b91f5..dfe69f22a203e795f93d41d2bd5cd3aceac0aab9 100644 (file)
@@ -9,5 +9,5 @@
 <%= error_messages_for "diary_entry" %>
 
 <%= form_for @diary_entry do |f| %>
-  <%= render :partial => "form", :locals =>  { :f => f } %>
+  <%= render :partial => "form", :locals => { :f => f } %>
 <% end %>