Replaces find(:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10917 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
96fca0b08f
commit
536747b747
29 files changed
+70
-71
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<% roles = Role.find_all_givable %>
|
||||
<% projects = Project.active.find(:all, :order => 'lft') %>
|
||||
<% projects = Project.active.all %>
|
||||
|
||||
<div class="splitcontentleft">
|
||||
<% if @group.memberships.any? %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%= error_messages_for 'member' %>
|
||||
<% roles = Role.find_all_givable
|
||||
members = @project.member_principals.find(:all, :include => [:roles, :principal]).sort %>
|
||||
members = @project.member_principals.includes(:roles, :principal).all.sort %>
|
||||
|
||||
<div class="splitcontentleft">
|
||||
<% if members.any? %>
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<p><%= setting_text_field :commit_fix_keywords, :size => 30 %>
|
||||
<%= l(:label_applied_status) %>: <%= setting_select :commit_fix_status_id,
|
||||
[["", 0]] +
|
||||
IssueStatus.find(:all).collect{
|
||||
IssueStatus.sorted.all.collect{
|
||||
|status| [status.name, status.id.to_s]
|
||||
},
|
||||
:label => false %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<% roles = Role.find_all_givable %>
|
||||
<% projects = Project.active.find(:all, :order => 'lft') %>
|
||||
<% projects = Project.active.all %>
|
||||
|
||||
<div class="splitcontentleft">
|
||||
<% if @user.memberships.any? %>
|
||||
|
||||
Reference in new issue
Block a user