lib/scrivito/backend/permalink_index.rb in scrivito_sdk-1.9.1 vs lib/scrivito/backend/permalink_index.rb in scrivito_sdk-1.10.0.rc1

- old
+ new

@@ -1,25 +1,22 @@ module Scrivito module Backend module PermalinkIndex -class << self + extend Backend::Index - include Backend::Index - - def id + def self.id "permalink" end - def query(keys) + def self.query(keys) [{ field: '_permalink', operator: :equals, value: keys }] end - def extract_update_value_from_data(data) + def self.extract_update_value_from_data(data) data["_permalink"] end -end end end end