subj_sub_models 0.0.3.23 → 0.0.3.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fad16ea6972ba18ae268561c70d843e6bf3d9c38
4
- data.tar.gz: e5bea2f711ce5035a472532140ad88ae022ebe2e
3
+ metadata.gz: f05992968b186c1dc23466805ce8f117d5e23dc4
4
+ data.tar.gz: a823128dd109ec4faf965d2e6b3ead7d7ac744b6
5
5
  SHA512:
6
- metadata.gz: 70305d6f65e8212cb55a3c4324c79abc45ee8e03a3b9d67264e695e0233bd760642aab22d53fcf856ecc7d73326f54cb6271a0de16b456a8dd80c426c4f33df5
7
- data.tar.gz: 8fa1e7729c50b7f5a5bd52803c009cb49466d5e069bc9d0612aaa487816757cc493c8960c97fafb8b3c72f71ad740ec9d515207ff7e9efe4fca43830d619673f
6
+ metadata.gz: 891955f5bbad8f3a630bc56ff94503639d6773d70b82ef73ad59f3c2d986d6a27922d5d8da1a4b9da09d8c477fd8c632561ff04368de80978a83f68c1dcd5401
7
+ data.tar.gz: 76e5e0a178330a80b7f0834bfd515c6e74fed32e88db89bdfb5d732a20fc63673dba9b9bf99e3b4c12bd36af45ca59ba95030a98ff4c4f9e803516837f0011fa
@@ -98,7 +98,7 @@ module SubjModels
98
98
  nomenclature_ids = ids
99
99
  attribute_value_name_strings.each do |str|
100
100
  attr_names = str.split('/')
101
- query_result = Nomenclature.joins(:attribute_values).where("attribute_values.nomenclature_value" => attr_names).where(id: nomenclature_ids).uniq
101
+ query_result = where("attribute_values.nomenclature_value" => attr_names).where(id: nomenclature_ids).uniq
102
102
  nomenclature_ids = query_result.pluck(:id)
103
103
  end
104
104
 
@@ -168,4 +168,4 @@ module SubjModels
168
168
 
169
169
  end
170
170
 
171
- end
171
+ end
@@ -1,3 +1,3 @@
1
1
  module SubjModels
2
- VERSION = '0.0.3.23'
2
+ VERSION = '0.0.3.24'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subj_sub_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.23
4
+ version: 0.0.3.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.Nasa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-09 00:00:00.000000000 Z
11
+ date: 2017-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler