caprese 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/caprese/serializer/concerns/links.rb +2 -2
- data/lib/caprese/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1064cb8d4344aa314d5cf4a3a851a4e52fad8ce7
|
4
|
+
data.tar.gz: 12be18352ab0c879d4c1bb138faa785b0ae5a28a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f02cc3064dbc79f29464be3222073bbfd2da45c85c63f3a96ce566ae5a45fd48b835ee54260b942ff70fc25bb9f41a6383302f9e0fd45fd5f86d54fea3cad240
|
7
|
+
data.tar.gz: 0df51ffba9329b200042af7521230213763ea0ada30799a50786160dcfea0500af1f02926bdf945ba058203e470d6ced4c36e21fba3785a9b6d304a28cf05f08
|
data/CHANGELOG.md
CHANGED
@@ -14,3 +14,7 @@
|
|
14
14
|
## 0.3.2
|
15
15
|
|
16
16
|
* Allow scoping of `has_many` relationships in serializers, i.e. when the relationship is included in another primary document
|
17
|
+
|
18
|
+
## 0.3.3
|
19
|
+
|
20
|
+
* Depend on all route primary key URL params to be named `:id`, rather than `Caprese.config.resource_primary_key`
|
@@ -80,7 +80,7 @@ module Caprese
|
|
80
80
|
if Rails.application.routes.url_helpers.respond_to? url
|
81
81
|
Rails.application.routes.url_helpers.send(
|
82
82
|
url,
|
83
|
-
|
83
|
+
id: object.read_attribute(primary_key),
|
84
84
|
relationship: reflection_name,
|
85
85
|
host: serializer.send(:caprese_default_url_options_host)
|
86
86
|
)
|
@@ -92,7 +92,7 @@ module Caprese
|
|
92
92
|
if Rails.application.routes.url_helpers.respond_to? url
|
93
93
|
Rails.application.routes.url_helpers.send(
|
94
94
|
url,
|
95
|
-
|
95
|
+
id: object.read_attribute(primary_key),
|
96
96
|
relationship: reflection_name,
|
97
97
|
host: serializer.send(:caprese_default_url_options_host)
|
98
98
|
)
|
data/lib/caprese/version.rb
CHANGED