Permalink
Browse files

fixing method listing and constant listings

  • Loading branch information...
1 parent 263d454 commit d2def8809c8bbc2db8497f0ae9b3db9fccaeff21 @tenderlove committed Jul 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/app/views/classes/show.html.erb
@@ -100,7 +100,7 @@
</ul>
<% end %>
-<% if klass.methods %>
+<% unless klass.methods.empty? %>
<div class="sectiontitle">Methods</div>
<ul>
<% klass.method_list.sort_by { |x| x.name }.each do |method| %>
@@ -134,7 +134,7 @@
<td>=</td>
<td class="attr-value"><%= constant.value %></td>
</tr>
-<% if constant.comment %>
+<% unless constant.comment.empty? %>
<tr valign='top'>
<td>&nbsp;</td>
<td colspan="2" class="attr-desc"><%= constant.comment.strip %></td>

0 comments on commit d2def88

Please sign in to comment.