Skip to content

Commit

Permalink
fix: partial path to photo in memoire exports
Browse files Browse the repository at this point in the history
  • Loading branch information
bricedurand committed Sep 16, 2024
1 parent ff6e2ae commit de15d81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/attachments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ def rotate
unless %w[90 -90].include?(params[:degrees])

@attachment.rotate!(degrees: params[:degrees].to_i)
render partial: "admin/exports/memoires/photo", locals: { photo: @attachment }
render partial: "admin/exports/memoire/photo", locals: { photo: @attachment }
end

def exportable
@attachment.update!(exportable: params[:exportable] == "true")

render partial: "admin/exports/memoires/photo", locals: { photo: @attachment }
render partial: "admin/exports/memoire/photo", locals: { photo: @attachment }
end

def destroy
Expand Down

0 comments on commit de15d81

Please sign in to comment.