Skip to content

Incompatibility with Marcel 1.0.3 #2729

@toby-brilliant

Description

@toby-brilliant

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions