Skip to content

Commit

Permalink
fix: trix attachment broken for GCP (#1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev authored Jul 17, 2023
1 parent d5455bf commit 26da23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/avo/attachments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class AttachmentsController < ApplicationController
before_action :set_model, only: [:destroy, :create]

def create
blob = ActiveStorage::Blob.create_and_upload! io: params[:file], filename: params[:filename]
blob = ActiveStorage::Blob.create_and_upload! io: params[:file].to_io, filename: params[:filename]
association_name = BaseResource.valid_attachment_name(@model, params[:attachment_key])

if association_name.blank?
Expand Down

0 comments on commit 26da23e

Please sign in to comment.