Kouhei Sutou
null+****@clear*****
Mon Dec 12 17:15:14 JST 2016
Kouhei Sutou 2016-12-12 17:15:14 +0900 (Mon, 12 Dec 2016) New Revision: 982e53db4efd05d180cda582865a690bf74fcc6e https://github.com/ranguba/groonga-client/commit/982e53db4efd05d180cda582865a690bf74fcc6e Message: Add a Response#size for Kaminari Modified files: lib/groonga/client/response/select.rb Modified: lib/groonga/client/response/select.rb (+5 -0) =================================================================== --- lib/groonga/client/response/select.rb 2016-12-12 13:43:38 +0900 (54a2fde) +++ lib/groonga/client/response/select.rb 2016-12-12 17:15:14 +0900 (99204d0) @@ -54,6 +54,11 @@ module Groonga (@command[:offset] || 0).to_i end + # For Kaminari + def size + records.size + end + private def parse_body(body) if body.is_a?(::Array) -------------- next part -------------- HTML����������������������������... Descargar