Skip to content

Commit

Permalink
Explicitly call the content item
Browse files Browse the repository at this point in the history
This is needed for atom feeds, otherwise the content item is not set.
Should probably make this a "before_action" in the content item
controller.
  • Loading branch information
leenagupte committed Sep 24, 2024
1 parent 18b9c3b commit 7f2c881
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/travel_advice_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def index
end

def show
@content_item = content_item
@content_item.set_current_part(params[:slug])
@travel_advice_presenter = TravelAdvicePresenter.new(@content_item)

Expand Down

0 comments on commit 7f2c881

Please sign in to comment.