model_driven_api 3.2.10 → 3.2.11

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
  SHA256:
3
- metadata.gz: 0fbc1608cd8d9b131868990f8944579ebb29c38b741eb7ccd5a9648dec3778e2
4
- data.tar.gz: f01fd64b659acd78457d1b1ff437739172dd5d79ca4cd5f236e0e9fd8bc7323d
3
+ metadata.gz: 44b97207c61261ee5c798b13a4eb143da2e140057ddc3cc0fd76b468e6d48e27
4
+ data.tar.gz: '08bc4159166a9634026dad47ccceb25df1c0fc50e4b15aed4f747a488401a80b'
5
5
  SHA512:
6
- metadata.gz: b8809fca597c152adaa6e1c78cb5d6c9866bc912dcd38bc66245af6bce78210d6c409d9bc028b3d01a9c0bd1fbe801af8ee88811c81adb01a59aa9878564070f
7
- data.tar.gz: 33809d4606db5d854df3f1381b1639391df88813e7a377a59adcd17aeba6b9110cbd12bc2b62883a63d9792cd8df4bb2a29056b45a6ca7a3ca61eef5c7c07704
6
+ metadata.gz: 2297c6601251467fef60fa08af0a3137bfd97f8d87d4781536e4d3fd7cd191d6641788090968fe135b2c60388bffbd44b0e525ab25a42709f848c60d4776ef3a
7
+ data.tar.gz: 5313e734a1e608eb3356bbe3a4eabe5965d684b06d2966d2a81a68293e4fa337fe22689d9a12a10210153ea103f423e1e451c1623bccddb5b112b97295b887ec
@@ -29,7 +29,8 @@ class Api::V2::ApplicationController < ActionController::API
29
29
  per = (@per.presence || params[:per])
30
30
  # pages_info = (@pages_info.presence || params[:pages_info])
31
31
  count = (@count.presence || params[:count])
32
- @records_count = @q.result.count
32
+ @records_count = @q.result.length
33
+ Rails.logger.debug("Found #{@records_count.inspect} records")
33
34
  @records_all = @q.result
34
35
  # Pagination
35
36
  @records = @q.result.page(page).per(per) # (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)
@@ -1,3 +1,3 @@
1
1
  module ModelDrivenApi
2
- VERSION = "3.2.10".freeze
2
+ VERSION = "3.2.11".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_driven_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.10
4
+ version: 3.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni