wolf_core 1.0.44 → 1.0.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wolf_core/application/application_service.rb +5 -2
- data/lib/wolf_core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dae314fa34d834160675bc4ee965b2b914ea4ab9a35555d019be09c3952a7caa
|
4
|
+
data.tar.gz: 6a3721a458c694cdd85be42d792d0a21bca9423898899696eb105aa1d63ec534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 072f42d2864ed47b470cebe99bb5067cf6a8ef8e1083316e69a8c8bd86694123931786a6bbe5ff51ff8514975f558b26a38daa160b7e3d9f4986da144bcd308f
|
7
|
+
data.tar.gz: 8d86d00fdf470e135df76da9ae81d42baed338104f442f830cd151c92262f1303a374e779dfb2cb2d98da69bab2d771aa19f52106e813074851081dfe6f4f087
|
@@ -28,10 +28,13 @@ module WolfCore
|
|
28
28
|
raise_service_error(result.error.to_h)
|
29
29
|
end
|
30
30
|
|
31
|
-
def validate_presence(object, message)
|
31
|
+
def validate_presence(object, message, error_data: {})
|
32
32
|
return if object.present?
|
33
33
|
|
34
|
-
|
34
|
+
error_data ||= {}
|
35
|
+
error_data = error_data.merge({ message: message })
|
36
|
+
|
37
|
+
raise_service_error(error_data)
|
35
38
|
end
|
36
39
|
|
37
40
|
def remove_non_permitted_parameters(params, allowed_params)
|
data/lib/wolf_core/version.rb
CHANGED