torque-postgresql 0.2.11 → 0.2.12
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e47edba535baccbfc619501bb245f4a32d794db6
|
4
|
+
data.tar.gz: d46d270a45f3f03b3bbf5e2292de9cd199f21897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|