diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-04 10:26:57 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-04 10:26:57 +0000 |
commit | 765b6e32d696c97fef16a7ccc5ea0792e511077a (patch) | |
tree | 23972e11d904960676a08eb726b1486db0c760bc /app/views/roles | |
parent | a260715ea2b651b5d1bc3801321d4a19c61c7c27 (diff) | |
download | redmine-765b6e32d696c97fef16a7ccc5ea0792e511077a.tar.gz redmine-765b6e32d696c97fef16a7ccc5ea0792e511077a.zip |
Don't query for each role.
git-svn-id: http://svn.redmine.org/redmine/trunk@15450 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/roles')
-rw-r--r-- | app/views/roles/_form.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/roles/_form.html.erb b/app/views/roles/_form.html.erb index 33fc08d5e..84d5de185 100644 --- a/app/views/roles/_form.html.erb +++ b/app/views/roles/_form.html.erb @@ -31,7 +31,7 @@ </label> <% Role.givable.sorted.each do |role| %> <label class="block role_managed_role" style="padding-left:2em;"> - <%= check_box_tag 'role[managed_role_ids][]', role.id, @role.managed_roles.include?(role), :id => nil %> + <%= check_box_tag 'role[managed_role_ids][]', role.id, @role.managed_roles.to_a.include?(role), :id => nil %> <%= role.name %> </label> <% end %> |