Skip to content

Commit

Permalink
Merge pull request #2322 from MushroomObserver/remove-presenter-call
Browse files Browse the repository at this point in the history
Remove one presenter instantiation
  • Loading branch information
nimmolo authored Aug 19, 2024
2 parents f6b37be + 8c723f5 commit 8bb66ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/helpers/tabs/projects_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ def add_project_banner(project)
def add_background_image(image)
return unless image

presenter = ImagePresenter.new(image, size: :large)
content_for(:background_image) do
image_tag(presenter.img_src, class: "image-title")
image_tag(image.large_url, class: "image-title")
end
end
end
Expand Down

0 comments on commit 8bb66ae

Please sign in to comment.