Sha256: 6aa25d0a5cb68931937a20a718fe4c13aa4e841a322c16c886573ac6f378031d

Contents?: true

Size: 303 Bytes

Versions: 96

Compression:

Stored size: 303 Bytes

Contents

# MonkeyPatch para que las direct uploads usen el service
# local. Si se usa S3 es complicado, porque hay que setear
# la CORS config.
ActiveStorage::DirectUploadsController.class_eval do
  alias_method :old_blob_args, :blob_args

  def blob_args
    old_blob_args.merge(service_name: :local)
  end
end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
pg_rails-7.6.27 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.26 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.25 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.24 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.24.pre.5 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.24.pre.4 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.24.pre.3 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.23 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.22 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.22.pre.3 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.22.pre.2 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.22.pre.1 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.21 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.21.pre.11 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.21.pre.10 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.21.pre.9 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.21.pre.8 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.21.pre.7 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.21.pre.6 pg_engine/app/overrides/activestorage_direct_uploads.rb
pg_rails-7.6.21.pre.5 pg_engine/app/overrides/activestorage_direct_uploads.rb