]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up app/models/role.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Oct 2019 15:53:48 +0000 (15:53 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 22 Oct 2019 15:53:48 +0000 (15:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18830 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/role.rb

index 0612af4918c726b36b6d3bf07495701404678d19..dd1091ce717b052355135dafbc21eb15b79f66fc 100644 (file)
@@ -287,7 +287,10 @@ class Role < ActiveRecord::Base
   end
 
   def allowed_actions
-    @actions_allowed ||= allowed_permissions.inject([]) { |actions, permission| actions += Redmine::AccessControl.allowed_actions(permission) }.flatten
+    @actions_allowed ||=
+      allowed_permissions.inject([]) {|actions, permission|
+        actions += Redmine::AccessControl.allowed_actions(permission)
+      }.flatten
   end
 
   def check_deletable