simple-sql 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple/sql/result/association_loader.rb +1 -1
- data/lib/simple/sql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41c7ddee7b4212971585f7b12249d3eb37a7dc5f2c4d4553404b30bc496c2f07
|
4
|
+
data.tar.gz: e24b684824bdfe76191fc347ed038588bd26a5fc2860a551a7270c44c681f665
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69fb213cb019c41e7425423b7f7791de730a70e4beb4f5aeff0a1179a927efa8e249ff27189160c5fca1bc4854c7b00eac395e0e0c257a9dc591c38663839841
|
7
|
+
data.tar.gz: 1f99c960752ba291a1f4a6d1c9a31e9075990acd70c903d43e37cbd28ff01ba7c33c17b9a31f0903dfa00193386606644a889d00999834970deb343946d0b79c
|
@@ -125,7 +125,7 @@ module ::Simple::SQL::Result::AssociationLoader # :nodoc:
|
|
125
125
|
scope = scope.where(belonging_column => host_ids)
|
126
126
|
scope = scope.order_by(order_by) if order_by
|
127
127
|
|
128
|
-
recs =
|
128
|
+
recs = connection.all(scope, into: Hash)
|
129
129
|
|
130
130
|
if as.to_s.singularize == as.to_s
|
131
131
|
recs_by_id = H.by_key(recs, belonging_column) # has_one
|
data/lib/simple/sql/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- radiospiel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-03
|
12
|
+
date: 2019-04-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pg_array_parser
|