cheap_ams 0.10.1 → 0.10.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03e8dea90f9b9cab4cce4f800c910014b7579a93
|
4
|
+
data.tar.gz: f27cc9fc0450587b11d012b4752cb62da155a65b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f76748de5d59b321659fa06515a069bf2563509236f2e80f0f3756624fea18670b5c0c4cff0acd48277f9dd9afa349cdcde0343eaf7613efda51537741634fa8
|
7
|
+
data.tar.gz: 96ffc4f94c58ffd3f2c32a97b011fd0faef25ef991b6bd6a34a3287bffe3bcc8d4e7b92c7196a470fd811153585889af2734352bd7cb8aac2e2b157bb2fcaa36
|
@@ -164,7 +164,7 @@ module ActiveModel
|
|
164
164
|
def add_links(options)
|
165
165
|
links = @hash.fetch(:links) { {} }
|
166
166
|
resources = serializer.instance_variable_get(:@resource)
|
167
|
-
@hash[:
|
167
|
+
@hash[:meta] = add_pagination_links(links, resources, options) if is_paginated?(resources)
|
168
168
|
end
|
169
169
|
|
170
170
|
def add_pagination_links(links, resources, options)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cheap_ams
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Klabnik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|