thecore_api 1.3.13 → 1.3.15
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: f2d968cca2094a7d824bda6ef006e48b5afb5f903a8e5736da1da91e6958eff6
|
4
|
+
data.tar.gz: a487d33314f647b82b2103218dee5b3a50e69641ae05955b6f39adb6d75dd575
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82891df7589f932cbe4342698f20071061b7ff976c1baebc5683f79978404dd9e150fb2ab10e40835bc8bbf9a6c1b876fe8758359cca5c438b618c2bef9e37f3
|
7
|
+
data.tar.gz: cb756c476b0a0eb7d86c83e15ad5029b24b13006d623708ecced108609a71399733750c84fe5e93a75bee82a41e308cdd7fc97eecc008ca9942f932ee4657034
|
@@ -25,11 +25,11 @@ class Api::V1::BaseController < ActionController::API
|
|
25
25
|
before_action :find_model, except: [ :version, :token, :available_roles, :check, :translations, :schema ]
|
26
26
|
before_action :find_record, only: [ :show, :update, :destroy ]
|
27
27
|
|
28
|
-
rescue_from ActiveRecord::RecordNotFound, with: :not_found!
|
29
|
-
rescue_from ActiveRecord::StatementInvalid, with: :unauthenticated!
|
30
|
-
rescue_from ActiveRecord::RecordInvalid, with: :invalid!
|
28
|
+
# rescue_from ActiveRecord::RecordNotFound, with: :not_found!
|
29
|
+
# rescue_from ActiveRecord::StatementInvalid, with: :unauthenticated!
|
30
|
+
# rescue_from ActiveRecord::RecordInvalid, with: :invalid!
|
31
31
|
#rescue_from CanCan::AuthorizationNotPerformed, with: :unauthorized!
|
32
|
-
rescue_from CanCan::AccessDenied, with: :unauthorized!
|
32
|
+
# rescue_from CanCan::AccessDenied, with: :unauthorized!
|
33
33
|
#rescue_from Pundit::NotAuthorizedError, with: :unauthorized!
|
34
34
|
|
35
35
|
attr_accessor :current_user
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Api::V1::InfoController < Api::V1::BaseController
|
2
2
|
# Info uses a different auth method: username and password
|
3
|
-
skip_before_action :authenticate_user!, only: [:version, :translations], raise: false
|
3
|
+
skip_before_action :authenticate_user!, only: [:version, :translations, :schema], raise: false
|
4
4
|
|
5
5
|
# api :GET, '/api/v1/info/version', "Just prints the APPVERSION."
|
6
6
|
# api!
|
data/lib/thecore_api/version.rb
CHANGED