mongoid/mongoid — Issue #1545: Indexing fails when files are in subfolders without being in module
Author: jonathonjones
Created: 2012-01-03 19:31:02+00:00
State: open

In a Rails app, suppose I have a Person class, and I also have a Student class that subclasses Person. If Student is in a file at app/models/people/student.rb , then the indexing rake task expects that that file will define Person::Student. But it doesn't, it just defines Student. Rails is fine with that as long as you add that folder to the autoload paths, but this indexing rake task crashes.