[groonga-dev,01165] Re: ActiveGroonga 1.0.7: paginate bug?

Back to archive index

Kouhei Sutou kou****@clear*****
2013年 1月 4日 (金) 15:21:32 JST


須藤です。

In <50E5B****@moriq*****>
  "[groonga-dev,01160] Re: ActiveGroonga 1.0.7: paginate bug?" on Fri, 04 Jan 2013 01:49:41 +0900,
  Kazuhiro Yoshida <moriq****@moriq*****> wrote:

> あと kaminari との関係ですが
> 
> kaminari 0.13.0 では動作します。
> kaminari 0.14.0 以降では
> undefined method total_pages for ActiveGroonga::ResultSet
> になります。

うわぁ、これは気付いていませんでした。
ありがとうございます。

> kaminari / CHANGELOG
>
> == 0.14.0
>
> * Changed method name "num_pages" to "total_pages"
>   num_pages" is still available as an alias of "total_pages", but will be
>   deprecated or removed in some future version.
>
> この変更のためです。

will_paginateと同じ名前にしたんですねぇ。
will_paginateでも動くようにしているコードがあったんですが、
それと一緒に使っていたら問題なく動いていました。。。

さっきリリースしたActiveGroonga 2.1.2ではKaminari 0.14.0以降
でも動くようになっています。


-- 
須藤 功平 <kou****@clear*****>
株式会社クリアコード <http://www.clear-code.com/> (03-6231-7270)

groongaサポート:
  http://groonga.org/ja/support/
パッチ採用はじめました:
  http://www.clear-code.com/recruitment/
コミットへのコメントサービスはじめました:
  http://www.clear-code.com/services/commit-comment.html




groonga-dev メーリングリストの案内
Back to archive index