]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at app/models/role.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 8 Nov 2020 13:01:55 +0000 (13:01 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 8 Nov 2020 13:01:55 +0000 (13:01 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20298 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/role.rb

index 7b097f47ddcde176dd8509c19c4920f92605435f..bd3c0662d6a11382ca1834abaad58d849007fa74 100644 (file)
@@ -295,9 +295,9 @@ class Role < ActiveRecord::Base
 
   def allowed_actions
     @actions_allowed ||=
-      allowed_permissions.inject([]) {|actions, permission|
+      allowed_permissions.inject([]) do |actions, permission|
         actions += Redmine::AccessControl.allowed_actions(permission)
-      }.flatten
+      end.flatten
   end
 
   def check_deletable