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

create indexes rake task is not recognizing a lot of mongoid models because it has problems guessing their model names from filenames

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

      Hi There,

      i just found out why the create_indexes rake task did not create indexes for most of our models:
      It tries to do a #classify on the filenames/namespaces. Model filenames are already singular though and #classify does a singularize first.

      IMHO this should be easy to understand and reproduce

      Best,

      Tobias

            Assignee:
            Unassigned Unassigned
            Reporter:
            tobsch Tobias Schlottke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: