]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/AccessModifierIndentation in app/models/role.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Oct 2019 15:53:37 +0000 (15:53 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Oct 2019 15:53:37 +0000 (15:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18829 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/models/role.rb

index 874be5b397d359f9c36512a4fb340116fd05496f..90ce2e23a8a0f9d56612d3463db68939ed7c3ca8 100644 (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.
index 7fee1b50f1e5d1c0c2e251de98513aea6e572824..0612af4918c726b36b6d3bf07495701404678d19 100644 (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}