{"comment":{"created_at":"2011-10-07T17:26:55Z","body":"\r\n... current_user.watchlists is very big at that moment, \r\nI give you a small cat ( first two Watchlist _id out of 368 : http://pastie.org/2656465 ) and some more type infos :\r\n\r\n<pre>\r\n2011-10-07 19:24:14 +0200 current_user.watchlists.class : Array\r\n2011-10-07 19:24:14 +0200 current_user.watchlists.size : 368\r\n</pre>\r\n\r\n\r\n\r\n... a semplified user model looks very similar to the following\r\n\r\n<pre>\r\nclass User   \r\n  include Mongoid::Document\r\n\r\n  field :provider\r\n  field :uid\r\n  field :name\r\n\r\n  embeds_many :watchlists\r\n\r\n  def self.create_with_omniauth(auth)  \r\n\r\n    nickname = auth['user_info']['nickname']\r\n    conn = FaradayStack.build 'https://api.github.com'\r\n    resp = conn.get \"/users/#{nickname}/watched\"\r\n\r\n    create! do |user|  \r\n      user.provider = auth[\"provider\"]  \r\n      user.uid = auth[\"uid\"]  \r\n      user.name = auth[\"user_info\"][\"name\"]  \r\n\r\n      resp.body.each do |repo|\r\n        user.watchlists.build( html_url: \"#{repo['html_url']}\", \r\n                              description: \"#{repo['description']}\", \r\n                              pushed_at: \"#{repo['pushed_at']}\",\r\n      end\r\n    end  \r\n  end  \r\nend\r\n</pre>\r\n\r\nwhile the embedded child is \r\n\r\n<pre>\r\nclass Watchlist\r\n  include Mongoid::Document\r\n\r\n  field :html_url\r\n  field :description\r\n  field :pushed_at, :type => DateTime\r\n\r\n  embedded_in :user\r\nend\r\n</pre>\r\n\r\n","updated_at":"2011-10-07T17:26:55Z","url":"https://api.github.com/repos/mongoid/mongoid/issues/comments/2324246","id":2324246,"user":{"avatar_url":"https://secure.gravatar.com/avatar/4d412b2392f741e2781ac099979934c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/lauranovara","id":1058393,"login":"lauranovara"}},"action":"created","issue":{"number":1329,"created_at":"2011-10-07T14:50:36Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I had in place a  working configuration :\r\n\r\n'mongoid  - 2.0.2,  bson - 1.3.1,  bson_ext 1.3.1 and  kaminari - 0.12.4'\r\n\r\n but after upgrading to 'mongoid 2.2.0,  bson 1.4.0,  and  bson_ext  1.4.0' ( same kaminari )\r\n\r\n First/Previous/Next/Last in the view doesn't show up anymore. \r\n\r\nNo erroros, nothing, just they don't show up. in my controller I had :\r\n\r\n      repos = current_user.watchlists.page(params[:page]).per(10)\r\n      @watched_repos = repos.desc(:watchers, :pushed_at)\r\n\r\nwhich calls mongoid \"embedded one to many\" model, while in app/views/kaminari/_paginator.html.haml I have:\r\n\r\n<pre>\r\n= paginator.render do\r\n  %nav.pagination\r\n    = first_page_tag unless current_page.first?\r\n    = prev_page_tag unless current_page.first?\r\n    - each_page do |page|\r\n      - if page.left_outer? || page.right_outer? || page.inside_window?\r\n        = page_tag page\r\n      - elsif !page.was_truncated?\r\n        = gap_tag\r\n    = next_page_tag unless current_page.last?\r\n    = last_page_tag unless current_page.last?\r\n</pre>\r\n\r\nI've no idea where to start debugging this.\r\nAny help ?\r\n\r\nThanks in advance \r\nLuca ","comments":2,"title":"After upgrading mongoid 2.0.2 to 2.2.0, Kaminari doesn't work anymore","updated_at":"2011-10-07T17:26:55Z","url":"https://api.github.com/repos/mongoid/mongoid/issues/1329","id":1844377,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/9c7d80ebc20ab8994e51b9f7518909ae?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/lgs","id":1573,"login":"lgs"},"html_url":"https://github.com/mongoid/mongoid/issues/1329","labels":[],"state":"open"},"legacy":{"issue_id":1844377,"comment_id":2324246}}