diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-08 13:01:55 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-08 13:01:55 +0000 |
commit | 3c10f4beceef59b94d6956808be80533c06f0485 (patch) | |
tree | 274782bc4f27b75b9ea1975aafb3a4375ebaf3fb /app | |
parent | 7ed3710a681c7f8023cb207f80f0dbf90bcd4ffc (diff) | |
download | redmine-3c10f4beceef59b94d6956808be80533c06f0485.tar.gz redmine-3c10f4beceef59b94d6956808be80533c06f0485.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/models/role.rb | 4 |
1 files 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 |