Commit 5bf01edeef1f17e80f3aa2873672c9d69a7c6b90

Authored by Andrew
1 parent 0b4a3a02

Exclude id from examples - #1103 [skip ci]

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
README.md
... ... @@ -854,7 +854,7 @@ class Restaurant < ApplicationRecord
854 854 searchkick locations: [:location]
855 855  
856 856 def search_data
857   - attributes.merge location: {lat: latitude, lon: longitude}
  857 + attributes.except("id").merge(location: {lat: latitude, lon: longitude})
858 858 end
859 859 end
860 860 ```
... ... @@ -904,7 +904,7 @@ class Restaurant < ApplicationRecord
904 904 }
905 905  
906 906 def search_data
907   - attributes.merge(
  907 + attributes.except("id").merge(
908 908 bounds: {
909 909 type: "envelope",
910 910 coordinates: [{lat: 4, lon: 1}, {lat: 2, lon: 3}]
... ...