fastapi 0.1.23 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fastapi.rb +6 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eacd51a98a309fbfd8f03899ca0ded1ffcdd5feb
4
- data.tar.gz: 160819b60e934f842fdceda21183ff6aa9cb8e0c
3
+ metadata.gz: 865a2af8b7cb9eaa5b07b197e8488d52b59b7301
4
+ data.tar.gz: 7837dbace0c099fb7a1b09e33702f0fdc53bacc0
5
5
  SHA512:
6
- metadata.gz: eeb5d0f5fa6d2d5f33284361604085f6e1492043fea09434a2dbc775db801ce11936f2d0d4d03777a9b6bd89f2594def05e861db604650f72fa453d1fedc19bf
7
- data.tar.gz: f0ff100e3ead2f5a3ea3aedc4d9bb77c134c52282b06efeb3998c9105c6b332a0ee67a51abf3adcd0cde9fbbf169feb9df09c86bd7c1ae6f517c1e98dd9efb5b
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
- has_many_filters = 'AND ' + filters[:has_many][model_symbol].join(' AND ')
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 << [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Horwood