Sha256: f720b075c168e4f68dbc9234f86762dd4b9e21874be87852edbe9489a6b6e3ce
Contents?: true
Size: 675 Bytes
Versions: 48
Compression:
Stored size: 675 Bytes
Contents
class Neo4j::Relationship module Wrapper def wrapper props.symbolize_keys! begin most_concrete_class = sorted_wrapper_classes wrapped_rel = most_concrete_class.constantize.new rescue NameError return self end wrapped_rel.init_on_load(self, self._start_node_id, self._end_node_id, self.rel_type) wrapped_rel end private def sorted_wrapper_classes props[Neo4j::Config.class_name_property] || class_from_type end def class_from_type Neo4j::ActiveRel::Types::WRAPPED_CLASSES[rel_type] || Neo4j::ActiveRel::Types::WRAPPED_CLASSES[rel_type] = rel_type.camelize end end end
Version data entries
48 entries across 48 versions & 1 rubygems