diff --git a/lib/rdoc/generator/template/rails/class.rhtml b/lib/rdoc/generator/template/rails/class.rhtml index 5cb937da..99ae7ad6 100644 --- a/lib/rdoc/generator/template/rails/class.rhtml +++ b/lib/rdoc/generator/template/rails/class.rhtml @@ -31,11 +31,11 @@

<%= klass.module? ? 'Module' : 'Class' %> <%= h klass.full_name %> - <% if klass.type == 'class' %> + <% if klass.type == "class" && klass.superclass %> < <% if klass.superclass.is_a?(String) %> <%= klass.superclass %> - <% elsif klass.superclass %> + <% else %> <%= link_to klass.superclass.full_name, klass.superclass %> <% end %>