caprese 0.3.2 → 0.3.3

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
  SHA1:
3
- metadata.gz: 4b725af58154343e22b1461038d79f44aed23dae
4
- data.tar.gz: 8b6529bd2b85c220c639a054e2238318a7fabcd6
3
+ metadata.gz: 1064cb8d4344aa314d5cf4a3a851a4e52fad8ce7
4
+ data.tar.gz: 12be18352ab0c879d4c1bb138faa785b0ae5a28a
5
5
  SHA512:
6
- metadata.gz: 06f96af5359480e0f38f28117752c29d953708b05d9e2e5f5a3578237ed8efabf1967cff668041fc66404dc4a6f71559b08f770bbeda0a4339ba9041f6dad0b4
7
- data.tar.gz: 392cccbd86e3fec174d5e7f86b545a1d17732c3b8ef6dc1d080221fe17fee04112fa771e3c36ca2ac63243ad5ec46dbb3c33a97b51a4745018fb14106a11139c
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
- primary_key => object.read_attribute(primary_key),
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
- primary_key => object.read_attribute(primary_key),
95
+ id: object.read_attribute(primary_key),
96
96
  relationship: reflection_name,
97
97
  host: serializer.send(:caprese_default_url_options_host)
98
98
  )
@@ -1,3 +1,3 @@
1
1
  module Caprese
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caprese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Landgrebe