neo4j 6.1.4 → 6.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/neo4j/active_node/id_property.rb +2 -4
- data/lib/neo4j/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e354c8febb1d9184fa43cce76cd330c41c6dbd8
|
4
|
+
data.tar.gz: afd33c3f4996017fac26e3315e023627a2664591
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f69ced8cf20c80e1ec7220eecf27f63eaa6b95f6f74e9bd1940ae7fc93c5de4ca53ce8af463d19185866efab1570e1ee12a90dff447b986449243d723b56e50
|
7
|
+
data.tar.gz: c430069c05842ada0082e3f9d1be20981660901bd50844b276ee6363cdb2f2f89ab35bb732ee808c24a3a48cd5c51fd119dd79b7a02626fa81d956dcc92ac983
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
This file should follow the standards specified on [http://keepachangelog.com/]
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [6.1.5] - 2016-01-28
|
7
|
+
|
8
|
+
### Fixed
|
9
|
+
|
10
|
+
- Calls to `.find`/`.find_by_id`/`.find_by_ids` now respect scopes and associations
|
11
|
+
|
6
12
|
## [6.1.4] - 2016-01-26
|
7
13
|
|
8
14
|
### Fixed
|
@@ -129,11 +129,11 @@ module Neo4j::ActiveNode
|
|
129
129
|
end
|
130
130
|
|
131
131
|
def find_by_id(id)
|
132
|
-
|
132
|
+
all.where(id_property_name => id).first
|
133
133
|
end
|
134
134
|
|
135
135
|
def find_by_ids(ids)
|
136
|
-
|
136
|
+
all.where(id_property_name => ids).to_a
|
137
137
|
end
|
138
138
|
|
139
139
|
def id_property(name, conf = {})
|
@@ -142,8 +142,6 @@ module Neo4j::ActiveNode
|
|
142
142
|
@id_property_info = {name: name, type: conf}
|
143
143
|
TypeMethods.define_id_methods(self, name, conf)
|
144
144
|
constraint(name, type: :unique) unless conf[:constraint] == false
|
145
|
-
|
146
|
-
self.define_singleton_method(:find_by_id) { |key| self.where(name => key).first }
|
147
145
|
end
|
148
146
|
end
|
149
147
|
|
data/lib/neo4j/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Ronge, Brian Underwood, Chris Grigg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|