neo4j 3.0.4 → 4.0.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +22 -0
- data/README.md +4 -0
- data/config/neo4j/config.yml +3 -1
- data/lib/neo4j/active_node/has_n/association.rb +4 -3
- data/lib/neo4j/active_node/id_property.rb +1 -1
- data/lib/neo4j/active_node/initialize.rb +1 -1
- data/lib/neo4j/active_node/labels.rb +20 -13
- data/lib/neo4j/active_node/query/query_proxy.rb +41 -16
- data/lib/neo4j/active_node/query/query_proxy_methods.rb +15 -3
- data/lib/neo4j/active_node/scope.rb +59 -2
- data/lib/neo4j/active_node.rb +13 -11
- data/lib/neo4j/active_rel/initialize.rb +1 -1
- data/lib/neo4j/active_rel/persistence.rb +3 -2
- data/lib/neo4j/active_rel/property.rb +0 -10
- data/lib/neo4j/active_rel/query.rb +0 -4
- data/lib/neo4j/active_rel/rel_wrapper.rb +15 -4
- data/lib/neo4j/active_rel/types.rb +54 -0
- data/lib/neo4j/active_rel.rb +5 -2
- data/lib/neo4j/paginated.rb +1 -1
- data/lib/neo4j/shared/persistence.rb +43 -7
- data/lib/neo4j/shared/property.rb +2 -6
- data/lib/neo4j/shared/rel_type_converters.rb +44 -0
- data/lib/neo4j/shared/serialized_properties.rb +29 -0
- data/lib/neo4j/shared/type_converters.rb +177 -0
- data/lib/neo4j/type_converters.rb +3 -166
- data/lib/neo4j/version.rb +1 -1
- data/lib/neo4j.rb +8 -4
- data/neo4j.gemspec +1 -1
- metadata +11 -8
- data/lib/neo4j/active_node/serialized_properties.rb +0 -21
@@ -1,21 +0,0 @@
|
|
1
|
-
module Neo4j::ActiveNode
|
2
|
-
module SerializedProperties
|
3
|
-
extend ActiveSupport::Concern
|
4
|
-
|
5
|
-
def serialized_properties
|
6
|
-
self.class.serialized_properties
|
7
|
-
end
|
8
|
-
|
9
|
-
module ClassMethods
|
10
|
-
|
11
|
-
def serialized_properties
|
12
|
-
@serialize || {}
|
13
|
-
end
|
14
|
-
|
15
|
-
def serialize(name, coder = JSON)
|
16
|
-
@serialize ||= {}
|
17
|
-
@serialize[name] = coder
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|