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
This commit is contained in:
Toshi MARUYAMA
2020-11-08 13:01:55 +00:00
parent 7ed3710a68
commit 3c10f4bece

View 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