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

uninitialized constant Downloader::MovieEnum #2

Closed
caecity43 opened this issue Sep 7, 2018 · 2 comments
Closed

uninitialized constant Downloader::MovieEnum #2

caecity43 opened this issue Sep 7, 2018 · 2 comments

Comments

@caecity43
Copy link

caecity43 commented Sep 7, 2018

I created movie_enum.rb in ./lib/

It not loaded when I start bundle exec kimurai crawl movie_spider

So, I add code to config/initializers/boot.rb under the require pipelines

# require lib
Dir.glob(File.join("./lib", "*.rb"), &method(:require))

it works.

@vifreefly
Copy link
Owner

Hello @caecity43 !

Yes, any files under lib/ folder should be manually required in config/boot.rb file. Looks like problem is solved, right? So I closing this issue.

@caecity43
Copy link
Author

@vifreefly yes, problem is solved. :)

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