Skip to content
This repository has been archived by the owner on May 25, 2018. It is now read-only.

Silence deprecation warnings for Sprockets #73

Closed
wants to merge 4 commits into from
Closed

Silence deprecation warnings for Sprockets #73

wants to merge 4 commits into from

Conversation

leemeichin
Copy link

@leemeichin leemeichin commented Jan 13, 2018

Sprockets will spam logs with this warning (see #72 too):

DEPRECATION WARNING: Sprockets method `register_engine` is deprecated.
Please register a mime type using `register_mime_type` then
use `register_compressor` or `register_transformer`.
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors

This is a super quick fix to silence that, since adding fully Sprockets v4 compatibility requires a little extra work.

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant