Kouhei Sutou
null+****@clear*****
Mon Mar 6 11:25:01 JST 2017
Kouhei Sutou 2017-03-06 11:25:01 +0900 (Mon, 06 Mar 2017) New Revision: cabb8f915ea53a8382028fa2fd81713dfc9cafd1 https://github.com/ranguba/groonga-client-model/commit/cabb8f915ea53a8382028fa2fd81713dfc9cafd1 Message: Use "id" Modified files: lib/groonga_client_model/record.rb Modified: lib/groonga_client_model/record.rb (+2 -2) =================================================================== --- lib/groonga_client_model/record.rb 2017-03-06 11:24:39 +0900 (0a73f7e) +++ lib/groonga_client_model/record.rb 2017-03-06 11:25:01 +0900 (b3ac6be) @@ -65,8 +65,8 @@ module GroongaClientModel end def find(id) - if id.respond_to?(:_id) - id = id._id + if id.respond_to?(:id) + id = id.id end record = select.filter("_id == %{id}", id: id).limit(1).first if record.nil? -------------- next part -------------- HTML����������������������������... Download