mirror of
https://github.com/redmine/redmine.git
synced 2025-12-15 21:10:27 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user