mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
code cleanup: rubocop: fix Layout/AccessModifierIndentation and Layout/EmptyLinesAroundAccessModifier in app/controllers/messages_controller.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18824 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
facc6e9bff
commit
26db7fa6bf
@ -18,7 +18,6 @@ Bundler/OrderedGems:
|
||||
# SupportedStyles: outdent, indent
|
||||
Layout/AccessModifierIndentation:
|
||||
Exclude:
|
||||
- 'app/controllers/messages_controller.rb'
|
||||
- 'app/controllers/timelog_controller.rb'
|
||||
- 'app/controllers/wiki_controller.rb'
|
||||
- 'app/models/role.rb'
|
||||
@ -98,7 +97,6 @@ Layout/EmptyLines:
|
||||
# SupportedStyles: around, only_before
|
||||
Layout/EmptyLinesAroundAccessModifier:
|
||||
Exclude:
|
||||
- 'app/controllers/messages_controller.rb'
|
||||
- 'app/controllers/previews_controller.rb'
|
||||
- 'app/controllers/timelog_controller.rb'
|
||||
- 'config/initializers/10-patches.rb'
|
||||
|
||||
@ -133,6 +133,7 @@ class MessagesController < ApplicationController
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def find_message
|
||||
return unless find_board
|
||||
@message = @board.messages.includes(:parent).find(params[:id])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user