lib/scrivito/backend/path_index.rb in scrivito_sdk-0.65.2 vs lib/scrivito/backend/path_index.rb in scrivito_sdk-0.66.0.rc1
- old
+ new
@@ -9,10 +9,14 @@
def id
"path"
end
def query(keys)
- [{:field => "_path", :operator => :equals, :value => keys}]
+ [{ field: '_path', operator: :equals, value: keys }]
+ end
+
+ def extract_update_value_from_data(data)
+ data["_path"]
end
def group_by_multiple(paths, obj_datas)
paths.map do |path|
obj_datas.select { |obj_data| obj_data.value_of("_path") == path }