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

Pagination on association doesn't work

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

      Given the following:

      class User
      has_and_belongs_to_many :friends, :class_name => 'User', :index => true
      end

      @user.friends.page(params[:page]).per(20) doesn't produce the expected limit(20) in the query. This is using the kaminari gem and the latest mongoid from master.

            Assignee:
            Unassigned Unassigned
            Reporter:
            fbjork Fredrik Björk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: