1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-11-09 17:57:00 +00:00
parent 5025dc975e
commit 02876fb1bf
2 changed files with 11 additions and 14 deletions

View File

@ -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

View File

@ -33,7 +33,8 @@ class Message < ActiveRecord::Base
:description => :content,
:group => :parent,
:type => Proc.new {|o| o.parent_id.nil? ? 'message' : 'reply'},
:url => Proc.new {|o|
:url =>
Proc.new {|o|
{:controller => 'messages', :action => 'show',
:board_id => o.board_id}.
merge(
@ -41,7 +42,8 @@ class Message < ActiveRecord::Base
{:id => o.id}
else
{:id => o.parent_id, :r => o.id, :anchor => "message-#{o.id}"}
end)}
end)
}
acts_as_activity_provider :scope => preload({:board => :project}, :author),
:author_key => :author_id