Skip to content

Commit

Permalink
Rails 5.0: asset_path doesn't accept nil anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Nov 27, 2023
1 parent 6308585 commit c110e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/collections/_logo.haml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
- if updateable
#logo-editor.field.w60.hidden-until-loaded
= label_tag :logo, _("Adjust logo")
= image_tag logo.try(:url, :croppable), id: 'cropbox'
= image_tag logo.try(:url, :croppable).to_s, id: 'cropbox'

#logo-preview
%label Preview
#preview-container
= image_tag logo.try(:url, :preview), id: 'preview'
= image_tag logo.try(:url, :preview).to_s, id: 'preview'

- if logo.present?
#logo-display.field.w60
Expand Down

0 comments on commit c110e34

Please sign in to comment.