Closed jan closed 10 years ago
It's hard to say without being able to search your codebase. This is going to be a tough one to help you debug otherwise.
@jan you should be able to debug this easily
rails swallows errors loading gems but you will seem them and can debug with this approach
i am 99.99% certain you are hitting a RAILS_ENV=production 'feature' of mongoid that pre-loads all models when running in production mode
you also seem to have a mix of RDMS and mongoid models, which is a potential cause of issues too
in any case, i'll bet 100 buckets it's not mongoid_grid_fs, but it's loading of mongoid, which in turn slurps in all models (iff in production mode) that you are seeing. this is a simply load order issue triggered by preloading in proudction and should be simple to fix.
Closing due to lack of activity.
Seems like mongoid-grid_fs, delayed_job and thinking_sphinx are not getting along.
When I restart delayed_job, I get the following error:
I did not experience this issue before I added grid_fs to my Gemfile.
I don't have a class
Home
by the way andCategory
's thinking_sphinx block reads:app/models/category.rb
So no idea where "Home" come's from. Also unsure who's to blame here.