pack_api 1.0.6 → 1.0.7

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: 60e98dc35dc970a330d8389e332c79e0b88a0286260603f1a06607be9aeae8f8
4
- data.tar.gz: 8f5293317ca533dfa471394a47967eb8a8d3af568e1d3f27fe544cd9251c304b
3
+ metadata.gz: 8ccbe0cae8d0c9aa1d33d9a6a87c2a2b13ba845f5f5718732ae0f61a4d289a5c
4
+ data.tar.gz: f2d58a151ff7f8fc091d9490f0289572eb812e644dc9313ec34285a991c4f5dc
5
5
  SHA512:
6
- metadata.gz: ff0d306e37c0e1bd186cad1c71bfe992c41f22f9f2717aa4072b70734e4a1ad867af985e8732085eb1c8e2a3410ec9cc39a62496e62e26b5bf1816245b9cf79e
7
- data.tar.gz: 339a131ff33b1e817d1c18b7ac1ca948a5bc3355837d90f4f9b7a8596da88a0452decacbf518d23f525f27a91cc44d8c23e100dcf1b5c6753cbdd0a409d8b7dd
6
+ metadata.gz: 7ddbbf0acc0ddfb04e8915bb8779f95d9386928b7aa4adbdb74bb3c447be677013b59f5b4dcff6cfcfe2ce20885b7dc82ca0f8209c886792aee8eb477e305733
7
+ data.tar.gz: cd3421835a51bcef01e36c1291d47e80e5339d8c754100655ae3de731e245957113cbf776fd5fd2ced4ce93e2b5e80a4b5f608b1237a5063fa77511976975be2
@@ -87,9 +87,9 @@ module PackAPI::Mapping
87
87
  def normalize_association_reference(api_attribute, model_attribute)
88
88
  if accepts_nested_attributes_for?(model_attribute)
89
89
  api_attribute
90
- elsif resource_association?(model_attribute)
90
+ elsif resource_association?(model_attribute) && !model_attribute.to_s.end_with?('_id')
91
91
  normalize_resource_association_reference(api_attribute)
92
- elsif collection_association?(model_attribute)
92
+ elsif collection_association?(model_attribute) && !model_attribute.to_s.end_with?('_ids')
93
93
  normalize_collection_association_reference(api_attribute)
94
94
  else
95
95
  api_attribute
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PackAPI
4
- VERSION = "1.0.6"
4
+ VERSION = "1.0.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pack_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flytedesk