mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
code cleanup: rubocop: fix Layout/SpaceAroundBlockParameters in lib/redmine/plugin.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18715 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a7b568ccff
commit
72fec3ae02
@ -288,7 +288,6 @@ Layout/SpaceAfterNot:
|
|||||||
Layout/SpaceAroundBlockParameters:
|
Layout/SpaceAroundBlockParameters:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/controllers/issues_controller.rb'
|
- 'app/controllers/issues_controller.rb'
|
||||||
- 'lib/redmine/plugin.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
|
|||||||
@ -342,7 +342,7 @@ module Redmine
|
|||||||
# permission :say_hello, { :example => :say_hello }, :require => :member
|
# permission :say_hello, { :example => :say_hello }, :require => :member
|
||||||
def permission(name, actions, options = {})
|
def permission(name, actions, options = {})
|
||||||
if @project_module
|
if @project_module
|
||||||
Redmine::AccessControl.map {|map| map.project_module(@project_module) {|map|map.permission(name, actions, options)}}
|
Redmine::AccessControl.map {|map| map.project_module(@project_module) {|map| map.permission(name, actions, options)}}
|
||||||
else
|
else
|
||||||
Redmine::AccessControl.map {|map| map.permission(name, actions, options)}
|
Redmine::AccessControl.map {|map| map.permission(name, actions, options)}
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user