populate-me 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/populate_me/document_mixins/schema.rb +1 -1
- data/lib/populate_me/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: be331bffcdd0d674766bfe0d30608203595c6de1
|
4
|
+
data.tar.gz: 6c2ff9be2717ca69dd6567bc9953f02a1d9cb0d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f95230cfbc50e885b8b47c9104b4887c72b9d60bce892e186d404e569aa5994a4b81d0958f39646707c18c25c78a261fe5b3e6601d21bdc81bc7c2b34ac3eed4
|
7
|
+
data.tar.gz: 4e3f90dbd5c3b8174ac8b11b85b2edcf58050d0c6e1ff8cff3aff813227e29c31a0c88b3d80a97e4cd02839ca52e2a6927662c3d6a6a641ba5c0d06f422d1074
|
@@ -103,7 +103,7 @@ module PopulateMe
|
|
103
103
|
|
104
104
|
def to_select_options o={}
|
105
105
|
proc do
|
106
|
-
items = self.admin_find(query: {}, fields: [self.id_string_key, self.label_field])
|
106
|
+
items = self.admin_find(query: (o[:query]||{}), fields: [self.id_string_key, self.label_field])
|
107
107
|
output = items.sort_by do |i|
|
108
108
|
i.to_s.downcase
|
109
109
|
end.map do |i|
|
data/lib/populate_me/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: populate-me
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mickael Riga
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: web-utils
|