summaryrefslogtreecommitdiffstats
path: root/app/models/message.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 17:57:00 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 17:57:00 +0000
commit02876fb1bfc160d4cd1b7ba8505f986035ccb185 (patch)
treead3c9d8f42ffc9204ae3c0569b6f88e38dc8ee5d /app/models/message.rb
parent5025dc975e8e48642d25a8d8e903fb6824a85206 (diff)
downloadredmine-02876fb1bfc160d4cd1b7ba8505f986035ccb185.tar.gz
redmine-02876fb1bfc160d4cd1b7ba8505f986035ccb185.zip
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
Diffstat (limited to 'app/models/message.rb')
-rw-r--r--app/models/message.rb20
1 files changed, 11 insertions, 9 deletions
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