mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-20 02:22:02 +00: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:
parent
7ed3710a68
commit
3c10f4bece
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user