torque-postgresql 0.2.11 → 0.2.12

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: e00cbde90c88cbb47a24042b6079f36bb4c28bf4
4
- data.tar.gz: 004dfeb7ada4542c0323103a3efd26ac50a3489b
3
+ metadata.gz: e47edba535baccbfc619501bb245f4a32d794db6
4
+ data.tar.gz: d46d270a45f3f03b3bbf5e2292de9cd199f21897
5
5
  SHA512:
6
- metadata.gz: e6534b55630fd54a816ad371eac9bc2a6efa4f6461fb99bcdd3445aa9dd2a3f33a06b51eb712053334dff34e09be396389949b42083703f0daa785e61406f9fd
7
- data.tar.gz: d4929ffb484e88855558cc6042f50fbf6e7dfa0de0c840add59a432cc5ec82fea0235b4adedaf24ebcd606c5a0dd393b4802e95f082c124ba04d597c2437953d
6
+ metadata.gz: 7948fc1d1f54cb902f4fc0778d5317e7b67ad059b16253171a389f5c43054117305819611c4a6d49e6939b36b727ed525154a4f01c7559468b9cc3c26582bff1
7
+ data.tar.gz: 1c228d0856a13a1beef89e0fc811dfc80d73c208f46f164455a400ff6854b5d66269c7eaefe831ee72eed4de594010f4afcf9dfa893b3c0018a94ab0b5f032a8
@@ -45,7 +45,10 @@ module Torque
45
45
  record_class = self.class._record_class_attribute
46
46
 
47
47
  with!(record_class)
48
- where!(record_class => types.map(&:table_name)) if options[:filter]
48
+ if options[:filter]
49
+ table = record_class.to_s.camelize.underscore
50
+ where!(table => { record_class => types.map(&:table_name) })
51
+ end
49
52
 
50
53
  self.cast_records_value = (types.present? ? types : model.casted_dependents.values)
51
54
  self
@@ -1,5 +1,5 @@
1
1
  module Torque
2
2
  module PostgreSQL
3
- VERSION = '0.2.11'
3
+ VERSION = '0.2.12'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torque-postgresql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Silva