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

NoMethodError: undefined method `group' for #<Moped::Collection:0xbf94c90>

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

      I updated mongoid from version 2 to version 3, and my script is broken now.

      h =

      {key: group_field, cond: cond, initial: initial_params, reduce: func}

      User.collection.group(h)

      (User - my model, h - hash with options)

      I can't find anything about this problem in google or at this page: http://mongoid.org/en/mongoid/docs/upgrading.html

      I want to use Group ( http://www.mongodb.org/display/DOCS/Aggregation#Aggregation-Group ). How I can do it with mongoid3?

            Assignee:
            Unassigned Unassigned
            Reporter:
            proton Peter Savichev (proton)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: