From: Toshi MARUYAMA Date: Sun, 8 Nov 2020 13:01:55 +0000 (+0000) Subject: use "do end" instead of {} at app/models/role.rb X-Git-Tag: 4.2.0~520 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3c10f4beceef59b94d6956808be80533c06f0485;p=redmine.git 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 --- 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