-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
update doc: MIME::Types#index_extensions is deprecated and will be private. #1737
Comments
I've come across this too, what should be used instead? |
anyone find a solution to this yet? |
Related ruby-mime-types issue: mime-types/ruby-mime-types#88 It seems there will be no replacement. Should we remove it from the README? Or how can we update the docs, to solve that issue with different calls? |
Wondering if anyone has worked around this or come to a resolution yet? |
Instead of
it seems you can use
|
On mime-types 2.99.1 I still need to index_extensions method call but that gives a deprecation warning. The example in #1924 (comment) by wrkrb33 seems like the better way of solving this. |
Isn't the old way of adding extensions but using the current v3.1 API less error-prone than the Here's the relevant mime_types changelog entry for 3.0, which indicates there's now an API that suits paperclip's use case.
from
|
The warning shows up when I copy it from document.
But I don't find method to avoid it
mime-types (2.4.3)
The text was updated successfully, but these errors were encountered: