Skip to content

Commit

Permalink
[#747] show non-reversible reflections in aside
Browse files Browse the repository at this point in the history
  • Loading branch information
al2o3cr committed Sep 21, 2011
1 parent bbe3ac5 commit 23893f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hobo/lib/hobo/rapid/generators/rapid/pages.dryml.erb
Expand Up @@ -124,7 +124,6 @@ end

unless model.view_hints.secondary_children.empty?
aside_collections = model.view_hints.secondary_children.map { |c| [model.reflections[c], model.reverse_reflection(c)] }
aside_collections.reject! { |refl, reverse| reverse.nil? }
end
-%>
<def tag="show-page" for="<%= model.name %>">
Expand Down Expand Up @@ -216,7 +215,7 @@ end

<aside param>
<% for refl, reverse_refl in aside_collections -%>
<% if linkable?(refl.klass, :"index_for_#{reverse_refl.name}") -%>
<% if reverse_refl && linkable?(refl.klass, :"index_for_#{reverse_refl.name}") -%>
<collection-preview:<%= refl.name %>.recent param="<%= refl.name %>-preview">
<heading-content:><human-collection-name with="&this.origin" collection="<%= refl.name %>" your/></heading-content:>
</collection-preview:<%= refl.name %>.recent>
Expand Down

0 comments on commit 23893f5

Please sign in to comment.