mirror of
https://github.com/redmine/redmine.git
synced 2025-12-17 05:50:29 +01: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:
@@ -288,7 +288,6 @@ Layout/SpaceAfterNot:
|
||||
Layout/SpaceAroundBlockParameters:
|
||||
Exclude:
|
||||
- 'app/controllers/issues_controller.rb'
|
||||
- 'lib/redmine/plugin.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
|
||||
@@ -342,7 +342,7 @@ module Redmine
|
||||
# permission :say_hello, { :example => :say_hello }, :require => :member
|
||||
def permission(name, actions, options = {})
|
||||
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
|
||||
Redmine::AccessControl.map {|map| map.permission(name, actions, options)}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user