##// END OF EJS Templates
Use exists? instead of count (#24839)....
Jean-Philippe Lang -
r15829:c7f03c00a922
parent child
Show More
@@ -143,7 +143,7 class Repository::Git < Repository
143 return if prev_db_heads.sort == repo_heads.sort
143 return if prev_db_heads.sort == repo_heads.sort
144
144
145 h["db_consistent"] ||= {}
145 h["db_consistent"] ||= {}
146 if changesets.count == 0
146 if ! changesets.exists?
147 h["db_consistent"]["ordering"] = 1
147 h["db_consistent"]["ordering"] = 1
148 merge_extra_info(h)
148 merge_extra_info(h)
149 self.save
149 self.save
@@ -16,7 +16,7
16 <tr class="<%= cycle("odd", "even") %>">
16 <tr class="<%= cycle("odd", "even") %>">
17 <td class="name"><%= link_to tracker.name, edit_tracker_path(tracker) %></td>
17 <td class="name"><%= link_to tracker.name, edit_tracker_path(tracker) %></td>
18 <td>
18 <td>
19 <% unless tracker.workflow_rules.count > 0 %>
19 <% unless tracker.workflow_rules.exists? %>
20 <span class="icon icon-warning">
20 <span class="icon icon-warning">
21 <%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:tracker_id => tracker) %>)
21 <%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:tracker_id => tracker) %>)
22 </span>
22 </span>
General Comments 0
You need to be logged in to leave comments. Login now