Added related contents to budget investments
This commit is contained in:
@@ -41,6 +41,7 @@ module Budgets
|
||||
def show
|
||||
@commentable = @investment
|
||||
@comment_tree = CommentTree.new(@commentable, params[:page], @current_order)
|
||||
@related_contents = Kaminari.paginate_array(@investment.relationed_contents).page(params[:page]).per(5)
|
||||
set_comment_flags(@comment_tree.comments)
|
||||
load_investment_votes(@investment)
|
||||
@investment_ids = [@investment.id]
|
||||
|
||||
@@ -76,6 +76,7 @@
|
||||
<p><%= investment.price_explanation %></p>
|
||||
<% end %>
|
||||
|
||||
<%= render 'relationable/related_content', relationable: @investment %>
|
||||
</div>
|
||||
|
||||
<aside class="small-12 medium-3 column">
|
||||
|
||||
Reference in New Issue
Block a user