Sha256: c7ad33adefda7cfb8300fa7fbe1e7ade3e9c26beff1225fc029538e3cd599d14
Contents?: true
Size: 438 Bytes
Versions: 80
Compression:
Stored size: 438 Bytes
Contents
module Scrivito module Backend module PathIndex class << self include Backend::Index def id "path" end def query(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 } end end end end end end
Version data entries
80 entries across 80 versions & 1 rubygems