Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1546

Indexing fails when files are in subfolders without being in module

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jonathonjones jonathonjones
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: