From 3c10f4beceef59b94d6956808be80533c06f0485 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 8 Nov 2020 13:01:55 +0000 Subject: [PATCH] use "do end" instead of {} at app/models/role.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20298 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/role.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/role.rb b/app/models/role.rb index 7b097f47d..bd3c0662d 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -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 -- 2.39.5