model_driven_api 2.5.0 → 2.5.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8698a1f65e7b3cae8a9d27c3c610435b11d23102f86e90719b45b1a480628279
|
4
|
+
data.tar.gz: bddef848a94fd0a23b555f44e7596606fc1ed630afcd3d91179bc8d6ac0fe601
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 483e239527128317d747a7f2621379b35d7ed0fe24947c135d5e13154364e530baf9bf63a022e56dd0ca70196cc3f21a13acdeeaf4496408e698afab075fee15
|
7
|
+
data.tar.gz: 7396686c68fbfd721ed82728e3d6d2de9c6e2170362a9432b24da98b1cff3c8667d822a187f6b9d2cdc1f0509fc6437cceb65e795a444f161d93d320572a57d5
|
@@ -61,14 +61,12 @@ class Api::V2::ApplicationController < ActionController::API
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def create
|
64
|
+
# Normal Create Action
|
64
65
|
@record = @model.new(@body)
|
65
66
|
authorize! :create, @record
|
66
|
-
|
67
67
|
# Custom Action
|
68
68
|
status, result, status_number = check_for_custom_action
|
69
69
|
return render json: result, status: (status_number.presence || 200) if status == true
|
70
|
-
|
71
|
-
# Normal Create Action
|
72
70
|
# Keeping this automation can be too dangerous and lead to unpredicted results
|
73
71
|
# TODO: Remove it
|
74
72
|
# @record.user_id = current_user.id if @model.column_names.include? "user_id"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'model_driven_api/version'
|
1
|
+
# require 'model_driven_api/version'
|
2
2
|
class Api::V2::InfoController < Api::V2::ApplicationController
|
3
3
|
# Info uses a different auth method: username and password
|
4
4
|
skip_before_action :authenticate_request, only: [:version], raise: false
|
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: 2.5.
|
4
|
+
version: 2.5.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: 2022-
|
11
|
+
date: 2022-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_backend_commons
|