arkaan 1.2.1 → 1.2.2
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 +4 -4
- data/lib/arkaan/utils/controller_without_filter.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94f9e526dfd7aa11a9d103f9b1d39d93c724ab1c
|
|
4
|
+
data.tar.gz: 606bcf3b0d470038dfaaed5142459ec9c8f2e0f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0dcb37e5a1c65e6613e4596d0c19487387628b01494b0957dc81017a24407748244b2449719e2d93ad067f4a6a4441054874d872e4faf693fac2ffa0fc370f50
|
|
7
|
+
data.tar.gz: b1ccc26cd9d60a8e76267f0d47f95a2b49d26abd2eeaf0bc76fe59f31ee7ce97cd5d225f87e0b571d1f44de3c4ef23e3c5559bb500643c36ae0afb4acdc42458
|
|
@@ -128,7 +128,8 @@ module Arkaan
|
|
|
128
128
|
# @param path [String] the path in the configuration file to access the URL.
|
|
129
129
|
def custom_error(status, path)
|
|
130
130
|
route, field, error = path.split('.')
|
|
131
|
-
|
|
131
|
+
docs = settings.errors[route][field][error] rescue ''
|
|
132
|
+
halt status, {status: status, field: field, error: error, docs: docs}.to_json
|
|
132
133
|
end
|
|
133
134
|
|
|
134
135
|
# Halts the application with a Bad Request error affecting a field of a model.
|