model_driven_api 3.2.2 → 3.2.3

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
  SHA256:
3
- metadata.gz: 4282b6de5aa1f0692ad907c6e711b69c5c300ca41562311f49c33113b0c2c002
4
- data.tar.gz: 5b103be64cfedc3dca3688aedcfe4d3e0d53d5476821debc6e3a6cae96ec7d65
3
+ metadata.gz: 1b024841871b7a4f4bebfe176a593b84521dce949655a46c47470f7c130330f9
4
+ data.tar.gz: d61e7ef935e4beeef85a8668636817aa84e97a7114d6d136c408d20e90ba6523
5
5
  SHA512:
6
- metadata.gz: 50fbc04a16be3c132b3b1afbb95a5730f766c6b51310d49cc49b76a139138cd42eeb45a1359ac855d69d8bab8df7eddff8c8093610c961c42376bcc1a5e52832
7
- data.tar.gz: a77ade2a13edb03093a425c0e01c3d6c1ffb526557463a1b02f2b8d63a8e99776b7d2ce21b94481520fc832a2e7b899103f687cb659323f1506fa04fb6e7860a
6
+ metadata.gz: 192f347a882bc659fa85ad38fcf00003b36dfc65053914737fea763cc508195bf6a4d8e6f73d5e7f08f6346eb83c76f89f641a5ebee2eaece50da7736af7aaad
7
+ data.tar.gz: bacb69b46cdf43d76668a43e28fd0510b65e1e9290b7c348f432c16d1d4c74618555ccde7735a879c0c4dd8fec64c4743fad0e3890715378f100af80fe7ded16
@@ -46,7 +46,10 @@ class Api::V2::InfoController < Api::V2::ApplicationController
46
46
  pivot[model][:associations] ||= {
47
47
  has_many: d.reflect_on_all_associations(:has_many).map { |a|
48
48
  a.name if (((a.options[:class_name].presence || a.name).to_s.classify.constantize.new.is_a? ApplicationRecord) rescue false)
49
- }.compact,
49
+ }.compact,
50
+ has_one: d.reflect_on_all_associations(:has_one).map { |a|
51
+ a.name if (((a.options[:class_name].presence || a.name).to_s.classify.constantize.new.is_a? ApplicationRecord) rescue false)
52
+ }.compact,
50
53
  belongs_to: d.reflect_on_all_associations(:belongs_to).map { |a|
51
54
  a.name if (((a.options[:class_name].presence || a.name).to_s.classify.constantize.new.is_a? ApplicationRecord) rescue false)
52
55
  }.compact
@@ -1,3 +1,3 @@
1
1
  module ModelDrivenApi
2
- VERSION = "3.2.2".freeze
2
+ VERSION = "3.2.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_driven_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-27 00:00:00.000000000 Z
11
+ date: 2024-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_backend_commons
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.5.9
170
+ rubygems_version: 3.5.11
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Convention based RoR engine which uses DB schema introspection to create