From 5bf01edeef1f17e80f3aa2873672c9d69a7c6b90 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 16 Mar 2018 22:19:17 -0700 Subject: [PATCH] Exclude id from examples - #1103 [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 85b1340..b57d559 100644 --- a/README.md +++ b/README.md @@ -854,7 +854,7 @@ class Restaurant < ApplicationRecord searchkick locations: [:location] def search_data - attributes.merge location: {lat: latitude, lon: longitude} + attributes.except("id").merge(location: {lat: latitude, lon: longitude}) end end ``` @@ -904,7 +904,7 @@ class Restaurant < ApplicationRecord } def search_data - attributes.merge( + attributes.except("id").merge( bounds: { type: "envelope", coordinates: [{lat: 4, lon: 1}, {lat: 2, lon: 3}] -- libgit2 0.21.0