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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92c2089ed9f39395bbb2082d2509b611dc3edf06
4
- data.tar.gz: 4df7f1e80399815320841200ce6ed3a34d51f70f
3
+ metadata.gz: be331bffcdd0d674766bfe0d30608203595c6de1
4
+ data.tar.gz: 6c2ff9be2717ca69dd6567bc9953f02a1d9cb0d2
5
5
  SHA512:
6
- metadata.gz: f1ff869f7c0a4dc0f36d0c0ebdff12e670563ff60237fcd620ffff2fd3dcba551faf0f2cd1113cfd287160631f4d8475463cd5d0cd087a1cc5727de88d4821e7
7
- data.tar.gz: 3bad55309476e3fcb50024dd602738d011e54a8514898f2b22f75004ce8e7807cd9326dc813ac41fc6fb510e9fea4549cb355661696c0a945354a006a3bea953
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|
@@ -1,4 +1,4 @@
1
1
  module PopulateMe
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
4
4
 
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.1
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-02-28 00:00:00.000000000 Z
11
+ date: 2018-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: web-utils