Sha256: fa449c2c28db6d127b772f67e6e0a2897806581a984fdb4fb6c9ca1ecab5a480
Contents?: true
Size: 324 Bytes
Versions: 4
Compression:
Stored size: 324 Bytes
Contents
# Register a JavaScript search API result format used by the resource browser. Scrivito::Configuration.register_obj_format('resourcebrowser') do |obj| format = { id: obj.id, title: obj.title || obj.name, } if obj.respond_to?(:image?) && obj.image? format[:preview] = obj.body_data_url end format end
Version data entries
4 entries across 4 versions & 1 rubygems