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