Sha256: 35f598329f51c7d136fd091efbe99a237c4b89ddbfaf63e1282f5d170229fbd3

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

module Scrivito
module Backend

module PermalinkIndex
  extend Backend::BaseIndex

  def self.id
    "permalink"
  end

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

  def self.extract_update_value_from_data(data)
    data["_permalink"]
  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/permalink_index.rb
scrivito_sdk-1.18.0.rc1 app/cms/scrivito/backend/permalink_index.rb