-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Incompatibility with Marcel 1.0.3 #2729
Copy link
Copy link
Closed
Description
Marcel released recently, for the first time in years. As the project mentions here, it seems CarrierWave was relying on a private constant which changed.
This line:
| mime_type = Marcel::TYPES[content_type] |
does not work with the newly released Marcel 1.0.3 as Marcel::TYPES has been changed. This yields stack traces that look something like:
NameError:
uninitialized constant Marcel::TYPES
# ./app/models/attachment.rb:44:in `block in set_remote_url'
# ./app/models/attachment.rb:40:in `set_remote_url
any time set_remote_url is used.
For anyone stuck on this, you can add Marcel directly to your Gemfile and pin it to the last version (e.g. gem "marcel", "=1.0.2")
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels