model_driven_api 2.3.1 → 2.3.2

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
  SHA256:
3
- metadata.gz: 3acc4504dc5bf9c20c0057659e911095eaad75d7b63d03b5632d8e02b847525f
4
- data.tar.gz: 3227192e26753f9160424739c3182bb08f503ccb2650e23291fea8894f15566d
3
+ metadata.gz: 938ca4a7652e660ccfcc3bbd4bc3b522244b0f95ba9ed423c9e48d62cb0c276d
4
+ data.tar.gz: 16e5aff46739a2f62476dda71243e46043d6f5a3e091412fb0a6acc6b4816d77
5
5
  SHA512:
6
- metadata.gz: c059a8c693d2605dab964bb2aa0e159975afb172aba8885bdd0bd0fc4208fa2535ecb7fb857e694de1a74cf7f1169c0a8d617098d926d9b28a07aced9d9902d0
7
- data.tar.gz: 677f5956846a1b6a9304491acde68d2c1988d5ddd81bd8d830a67224b11dad63619c9133e2bf3eef1597c8b0798bbe9036a1994344b183ca61979e00a577769e
6
+ metadata.gz: aa54e6a67fee44ee822eb42ad813653778ac54ae71361422d4325c86926dbde3618deffc57a8c000d3f7b9d03dc0056dbaea553abc72c4a6fac08fa294e12d9a
7
+ data.tar.gz: 2f719b6e61b8ad5ee976d7a889fe83189e75951ce028f8aced76da08155f4b97bb2901f9e94a92bf825f4daa8b425d6495d35d1983b98467738a0247e64b14ad
@@ -21,7 +21,7 @@ class Api::V2::ApplicationController < ActionController::API
21
21
 
22
22
  # Normal Index Action with Ransack querying
23
23
  @q = (@model.column_names.include?("user_id") ? @model.where(user_id: current_user.id) : @model).ransack(@query.presence|| params[:q])
24
- @records_all = @q.result(distinct: true)
24
+ @records_all = @q.result # (distinct: true) Removing, but I'm not sure, with it I cannot sort in postgres for associated records (throws an exception on misuse of sort with distinct)
25
25
  page = (@page.presence || params[:page])
26
26
  per = (@per.presence || params[:per])
27
27
  pages_info = (@pages_info.presence || params[:pages_info])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_driven_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-03 00:00:00.000000000 Z
11
+ date: 2021-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_backend_commons