1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-26 10:21:14 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-10-22 15:53:37 +00:00
parent c54761c690
commit e079d49dd7
2 changed files with 1 additions and 2 deletions

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.

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}