Sha256: 81517043c61e409c25b3f4c495643b2535fae61c8f7e624a7c7761da40c30266
Contents?: true
Size: 642 Bytes
Versions: 3
Compression:
Stored size: 642 Bytes
Contents
module Neo4j::ActiveNode module Property extend ActiveSupport::Concern include Neo4j::Shared::Property module ClassMethods # Extracts keys from attributes hash which are relationships of the model # TODO: Validate separately that relationships are getting the right values? Perhaps also store the values and persist relationships on save? def extract_association_attributes!(attributes) attributes.keys.inject({}) do |association_props, key| association_props[key] = attributes.delete(key) if self.has_association?(key) association_props end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
neo4j-3.0.0.rc.2 | lib/neo4j/active_node/property.rb |
neo4j-3.0.0.alpha.11 | lib/neo4j/active_node/property.rb |
neo4j-3.0.0.alpha.10 | lib/neo4j/active_node/property.rb |