Sha256: 05748b5b431ef90d290308d3bd46690ccd1fc61fb39f6aec0392b80766f49211
Contents?: true
Size: 369 Bytes
Versions: 71
Compression:
Stored size: 369 Bytes
Contents
PowerConverter.define_conversion_for(:sipity_entity) do |input| case input when URI::GID Sipity::Entity.find_by(proxy_for_global_id: input.to_s) when SolrDocument PowerConverter.convert_to_sipity_entity(input.to_model.to_global_id) when Sipity::Entity input when Sipity::Comment PowerConverter.convert_to_sipity_entity(input.entity) end end
Version data entries
71 entries across 71 versions & 3 rubygems