From 02876fb1bfc160d4cd1b7ba8505f986035ccb185 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 9 Nov 2019 17:57:00 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/BlockEndNewline in app/models/message.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19047 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 5 ----- app/models/message.rb | 20 +++++++++++--------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ba0a284ae..1ceff99b9 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -14,11 +14,6 @@ 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 diff --git a/app/models/message.rb b/app/models/message.rb index 648097983..f48785447 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -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 -- 2.39.5