Permalink
Browse files

do not assume that klass.superclass is not nil

  • Loading branch information...
1 parent 9dcb1c6 commit 1ecee7b568b2fe4eae64c54e47f75e7297f7863d @fxn fxn committed Dec 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/app/views/classes/show.html.erb
@@ -21,7 +21,7 @@
<% if String === klass.superclass %>
<%= klass.superclass %>
- <% else %>
+ <% elsif klass.superclass %>
<%= link_to klass.superclass.full_name, klass.aref_to(klass.superclass.path) %>
<% end %>
</td>

0 comments on commit 1ecee7b

Please sign in to comment.