Skip to content

Commit

Permalink
code cleanup: rubocop: fix Layout/AccessModifierIndentation in app/mo…
Browse files Browse the repository at this point in the history
…dels/role.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18829 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
marutosi committed Oct 22, 2019
1 parent c54761c commit e079d49
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion app/models/role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def self.anonymous
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}
Expand Down

0 comments on commit e079d49

Please sign in to comment.