fastapi 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastapi.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 865a2af8b7cb9eaa5b07b197e8488d52b59b7301
|
4
|
+
data.tar.gz: 7837dbace0c099fb7a1b09e33702f0fdc53bacc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ca511a49d7786c24e8d8fa875dd1faac08f10409761da15e75dd18257e04818e0542316aa14ff7232a5667a1d9ab5c7265d366585c5111a9e61a9c0f07318e0
|
7
|
+
data.tar.gz: 2c56f860cfcdc05baaa1468d21064d3efa720999c5a051b98ef02fd0bd2b806fe76781d308525c4083b57a9c74a749edbd6e6881174e966c5dd143a13077390b
|
data/lib/fastapi.rb
CHANGED
@@ -1024,10 +1024,15 @@ class FastAPI
|
|
1024
1024
|
has_many_filters = ''
|
1025
1025
|
has_many_order = ''
|
1026
1026
|
if filters[:has_many].has_key? model_symbol
|
1027
|
-
|
1027
|
+
|
1028
|
+
if filters[:has_many][model_symbol].count > 0
|
1029
|
+
has_many_filters = 'AND ' + filters[:has_many][model_symbol].join(' AND ')
|
1030
|
+
end
|
1031
|
+
|
1028
1032
|
if not filters[:has_many_order][model_symbol].nil?
|
1029
1033
|
has_many_order = 'ORDER BY ' + filters[:has_many_order][model_symbol]
|
1030
1034
|
end
|
1035
|
+
|
1031
1036
|
end
|
1032
1037
|
|
1033
1038
|
field_list << [
|