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: d90e4b33bc0bcd2697f3da58a7fd2425bd9ce21ec85940700f3e61e0ed90e506
4
- data.tar.gz: 3e0f911934ba78ff08ca11c95ee37e05ccbe22b91847b8d0a751e8d94521d89d
3
+ metadata.gz: 8698a1f65e7b3cae8a9d27c3c610435b11d23102f86e90719b45b1a480628279
4
+ data.tar.gz: bddef848a94fd0a23b555f44e7596606fc1ed630afcd3d91179bc8d6ac0fe601
5
5
  SHA512:
6
- metadata.gz: e2a5966641ecff5dcb932c5993f487c3935df49dcfb56e9fda6132b5dfc217817c932703e958f85c5a0e5b33555d0ca72c75b90693e9971a0255aa4b65212b27
7
- data.tar.gz: bd517e4240a5fc44c993907a93f12d39195f7a223f54ceee68cabb41a2c5ea1f0d0639b2fd39e7ef20722827224bbda6e5f02d3b4d5acfff768b7d134f9b3da1
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.0
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-02-11 00:00:00.000000000 Z
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