]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/BlockEndNewline in app/models/message.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 17:57:00 +0000 (17:57 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 17:57:00 +0000 (17:57 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19047 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/models/message.rb

index ba0a284aecab93e952e5fd9aa4549a95b63c643e..1ceff99b91da5b4351a07a85139e26135d9bff35 100644 (file)
 Layout/AlignHash:
   Enabled: false
 
-# Cop supports --auto-correct.
-Layout/BlockEndNewline:
-  Exclude:
-    - 'app/models/message.rb'
-
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
 # SupportedStyles: case, end
index 648097983f51431b846ef369d1cf26d9bb9d77cc..f48785447afdfc5a0b3e5dc044a4ee49f6707295 100644 (file)
@@ -33,15 +33,17 @@ class Message < ActiveRecord::Base
                 :description => :content,
                 :group => :parent,
                 :type => Proc.new {|o| o.parent_id.nil? ? 'message' : 'reply'},
-                :url => Proc.new {|o|
-                  {:controller => 'messages', :action => 'show',
-                   :board_id => o.board_id}.
-                     merge(
-                       if o.parent_id.nil?
-                         {:id => o.id}
-                       else
-                         {:id => o.parent_id, :r => o.id, :anchor => "message-#{o.id}"}
-                       end)}
+                :url =>
+                  Proc.new {|o|
+                    {:controller => 'messages', :action => 'show',
+                     :board_id => o.board_id}.
+                       merge(
+                         if o.parent_id.nil?
+                           {:id => o.id}
+                         else
+                           {:id => o.parent_id, :r => o.id, :anchor => "message-#{o.id}"}
+                         end)
+                  }
 
   acts_as_activity_provider :scope => preload({:board => :project}, :author),
                             :author_key => :author_id