model_driven_api 3.2.1 → 3.2.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
  SHA256:
3
- metadata.gz: 484b0a3f30e3d9f1bf3b5345a46698ae66a35aeff259a50d6260adfadbd355c3
4
- data.tar.gz: fbde7e739014cfeb049f55421aaac00c2b14461de0911aae40b623a089b177d2
3
+ metadata.gz: 4282b6de5aa1f0692ad907c6e711b69c5c300ca41562311f49c33113b0c2c002
4
+ data.tar.gz: 5b103be64cfedc3dca3688aedcfe4d3e0d53d5476821debc6e3a6cae96ec7d65
5
5
  SHA512:
6
- metadata.gz: a0f5da89ce627a15211a2b5e69fc415453bec5781d81089369d8198b83d8a56e8ddbeabe5f44a4a38b7caba3daf82a90175f036f3c4af2cfee38af218e887486
7
- data.tar.gz: 1bacbc9b718fa72eaae21cdb139859d098873a41e8256020bcc32619e5299b7cdb17f297bd94ac73f130a899e1a663cad381efec89406e69122fa69d44205d28
6
+ metadata.gz: 50fbc04a16be3c132b3b1afbb95a5730f766c6b51310d49cc49b76a139138cd42eeb45a1359ac855d69d8bab8df7eddff8c8093610c961c42376bcc1a5e52832
7
+ data.tar.gz: a77ade2a13edb03093a425c0e01c3d6c1ffb526557463a1b02f2b8d63a8e99776b7d2ce21b94481520fc832a2e7b899103f687cb659323f1506fa04fb6e7860a
@@ -163,6 +163,7 @@ class Api::V2::ApplicationController < ActionController::API
163
163
  # 2. As a module instance method in the model, like Track::Endpoints.inventory
164
164
  # Example:
165
165
  # Endpoints::TestApi.new(:test, {request_verb: "POST", is_connected: "Uhhhh"}).result
166
+ Rails.logger.debug("Checking for custom action #{custom_action} in #{@model}")
166
167
  if @model.respond_to?("custom_action_#{custom_action}")
167
168
  body, status = @model.send("custom_action_#{custom_action}", params)
168
169
  elsif ("Endpoints::#{@model}".constantize rescue false) && "Endpoints::#{@model}".constantize.instance_methods.include?(custom_action.to_sym)
@@ -1,3 +1,3 @@
1
1
  module ModelDrivenApi
2
- VERSION = "3.2.1".freeze
2
+ VERSION = "3.2.2".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.1
4
+ version: 3.2.2
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-23 00:00:00.000000000 Z
11
+ date: 2024-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_backend_commons