rest_rails 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/rest_rails/data_controller.rb +1 -1
- data/lib/rest_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81948eac89af4c4791ed9dc755bef3da9c247f131ba516ec441b411d76192e61
|
4
|
+
data.tar.gz: 1ca64d35ae1b5dbdf326b1f97e19ffadae14ebe392dbbcd36e668600c3741474
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e44cd7f9047bd5dfbc4e7b485716a7669056aa24c1da2b29e830831009010d83691d81cb71066bb997cf7989d3cc129d130b16ab60650aaf7652b13f67e3b89
|
7
|
+
data.tar.gz: b2b64cd6d7f29786d74e5ab98b417aed413ff8151277f212e97f4e8fa16d0ad6204423b4447d87e75010f0925dd7eadcd8d6eec7e4c6f227e561878dd955c15a
|
@@ -16,7 +16,7 @@ module RestRails
|
|
16
16
|
base_query = p_hash.blank? ? @model.all : @model.where(p_hash)
|
17
17
|
|
18
18
|
@objects = base_query.order(:id).limit(ppage).offset(off)
|
19
|
-
@objects.map
|
19
|
+
@objects = @objects.map{|x| standardize_json(x) }
|
20
20
|
|
21
21
|
render json: {code: 200, objects: @objects, count: @objects.count, total: @model.count}
|
22
22
|
end
|
data/lib/rest_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Rivas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|