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:
parent
5025dc975e
commit
02876fb1bf
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user