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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 2.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Tobias Schlottke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: