kreeti / kt-paperclip

Easy file attachment management for ActiveRecord
Other
275 stars 95 forks source link

Return the type at the end of the method call #84

Closed ngan closed 2 years ago

ngan commented 2 years ago

This is to fix a bug where if @type_from_marcel does not equal SENSIBLE_DEFAULT, nil is returned instead of the @type_from_marcel that was discovered on line 72:

      @type_from_marcel = Marcel::MimeType.for Pathname.new(@filepath),
                                               name: @filepath
ngan commented 2 years ago

cc @ssinghi @jeffse

I think this is a pretty gnarly bug and we should cut another release ASAP 😄