Browse Source

code cleanup: rubocop: fix Layout/AccessModifierIndentation in app/models/role.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18829 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Toshi MARUYAMA 4 years ago
parent
commit
e079d49dd7
2 changed files with 1 additions and 2 deletions
  1. 0
    1
      .rubocop_todo.yml
  2. 1
    1
      app/models/role.rb

+ 0
- 1
.rubocop_todo.yml View File

@@ -19,7 +19,6 @@ Bundler/OrderedGems:
Layout/AccessModifierIndentation:
Exclude:
- 'app/controllers/wiki_controller.rb'
- 'app/models/role.rb'

# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.

+ 1
- 1
app/models/role.rb View File

@@ -280,7 +280,7 @@ class Role < ActiveRecord::Base
find_or_create_system_role(BUILTIN_ANONYMOUS, 'Anonymous')
end

private
private

def allowed_permissions
@allowed_permissions ||= permissions + Redmine::AccessControl.public_permissions.collect {|p| p.name}

Loading…
Cancel
Save