summaryrefslogtreecommitdiffstats
path: root/app/views/issues/show.rhtml
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-05-14 17:15:09 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-05-14 17:15:09 +0000
commita7b80fcc06e34db44d5d06a293f8a463df32c630 (patch)
treec12291b498233e9935415f095a82869f16467765 /app/views/issues/show.rhtml
parente417d755e94eefb31a7a0b91e03fde41c4c84d1e (diff)
downloadredmine-a7b80fcc06e34db44d5d06a293f8a463df32c630.tar.gz
redmine-a7b80fcc06e34db44d5d06a293f8a463df32c630.zip
Use present? instead of any?. Handles nil case.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3736 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues/show.rhtml')
-rw-r--r--app/views/issues/show.rhtml10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml
index 5f6ba1ba6..b48ff2cd1 100644
--- a/app/views/issues/show.rhtml
+++ b/app/views/issues/show.rhtml
@@ -70,7 +70,7 @@
</div>
<% end %>
-<% if authorize_for('issue_relations', 'new') || @issue.relations.any? %>
+<% if authorize_for('issue_relations', 'new') || @issue.relations.present? %>
<hr />
<div id="relations">
<%= render :partial => 'relations' %>
@@ -79,14 +79,14 @@
</div>
-<% if @changesets.any? %>
+<% if @changesets.present? %>
<div id="issue-changesets">
<h3><%=l(:label_associated_revisions)%></h3>
<%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
</div>
<% end %>
-<% if @journals.any? %>
+<% if @journals.present? %>
<div id="history">
<h3><%=l(:label_history)%></h3>
<%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
@@ -116,7 +116,7 @@
<%= render :partial => 'issues/sidebar' %>
<% if User.current.allowed_to?(:add_issue_watchers, @project) ||
- (@issue.watchers.any? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
+ (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
<div id="watchers">
<%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
</div>
@@ -130,4 +130,4 @@
<%= stylesheet_link_tag 'context_menu' %>
<% end %>
<div id="context-menu" style="display: none;"></div>
-<%= javascript_tag "new ContextMenu('#{url_for(:controller => 'issues', :action => 'context_menu')}')" %> \ No newline at end of file
+<%= javascript_tag "new ContextMenu('#{url_for(:controller => 'issues', :action => 'context_menu')}')" %>