Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `register_preprocessor' #41

Closed
aaronchi opened this issue Mar 9, 2014 · 3 comments
Closed

undefined method `register_preprocessor' #41

aaronchi opened this issue Mar 9, 2014 · 3 comments

Comments

@aaronchi
Copy link

aaronchi commented Mar 9, 2014

Since 11.1, I get this error when trying to start a rails app that includes this gem.

/Users/aaron/.rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/image_optim-0.11.1/lib/image_optim/railtie.rb:17:in block in <class:Railtie>': undefined methodregister_preprocessor' for nil:NilClass (NoMethodError)

@toy
Copy link
Owner

toy commented Mar 9, 2014

Could you please provide more info about your application configuration? Especially about sprockets library, is is used/loaded or intentionally disabled?

@aaronchi
Copy link
Author

ah ok. I removed the sprockets railtie in application. Adding it back solves the problem.

@toy
Copy link
Owner

toy commented Mar 10, 2014

Not yet time to close, image_optim should not cause this if sprockets library not used.

@toy toy reopened this Mar 10, 2014
@toy toy closed this as completed in 516ec7e Mar 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants