Skip to content

Commit

Permalink
Fix regression in cloudinary_url generation
Browse files Browse the repository at this point in the history
Fixes #552
  • Loading branch information
const-cloudinary committed May 28, 2024
1 parent 3f36dc0 commit d2118e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_storage/service/cloudinary_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def full_public_id_internal(key, options = {})

options = @options.merge(options)

return public_id if !options[:folder] || options.fetch(:type).to_s == "fetch"
return public_id if !options[:folder] || options.fetch(:type, "").to_s == "fetch"

File.join(@options.fetch(:folder), public_id)
end
Expand Down

0 comments on commit d2118e3

Please sign in to comment.