lib/scrivito/backend/permalink_index.rb in scrivito_sdk-0.65.2 vs lib/scrivito/backend/permalink_index.rb in scrivito_sdk-0.66.0.rc1
- old
+ new
@@ -1,17 +1,25 @@
module Scrivito
module Backend
- class PermalinkIndex
- class << self
- include Backend::Index
- def id
- "permalink"
- end
+module PermalinkIndex
+class << self
- def query(keys)
- [{ field: '_permalink', operator: :equals, value: keys }]
- end
- end
+ include Backend::Index
+
+ def id
+ "permalink"
end
+
+ def query(keys)
+ [{ field: '_permalink', operator: :equals, value: keys }]
+ end
+
+ def extract_update_value_from_data(data)
+ data["_permalink"]
+ end
+
+end
+end
+
end
end