Sha256: 3c7fe96c77234060c7cdc74e6c4bf48b1656a9de3ace2a28832409a264e894f3

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

module Scrivito
module Backend

module ParentPathIndex
  extend Backend::BaseIndex

  def self.id
    "ppath"
  end

  def self.query(keys)
    [{ field: "_parent_path", operator: :equals, value: keys }]
  end

  def self.extract_update_value_from_data(data)
    ParentPath.of(data["_path"])
  end

end

end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scrivito_sdk-1.18.0 app/cms/scrivito/backend/parent_path_index.rb
scrivito_sdk-1.18.0.rc1 app/cms/scrivito/backend/parent_path_index.rb