rails_com 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/the_common_api.rb +3 -2
- data/lib/rails_com/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9497a96e6ecdc030a751dc26a4ec06c3744eb4d5cf489d84bd6dff80fefad756
|
4
|
+
data.tar.gz: f2d44af298db230e65e097d7b81c23f93648ea27c1cd576bf551e7b69f2a4a75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06f9ecaf82f6120f8e010edfe74f9d9f6de2fa7292653a49334c65ff610786424583c2392781a6f20f32f51ef89e155f7397fb690b56292eb7abbb70f7e57f68
|
7
|
+
data.tar.gz: f9be3f22d63bb88a829ac953adcc848546a3140bd7fba34103d136816a26ae8e86dec6a234a3262a503730a2f844fa379aa78c1a1950991c740c5be0d62b0a73
|
@@ -13,8 +13,9 @@ module TheCommonApi
|
|
13
13
|
|
14
14
|
def process_errors(model)
|
15
15
|
render json: {
|
16
|
-
|
17
|
-
|
16
|
+
code: 500,
|
17
|
+
error: model.errors.as_json(full_messages: true),
|
18
|
+
message: model.errors.full_messages.join("\n")
|
18
19
|
}, status: 200
|
19
20
|
end
|
20
21
|
|
data/lib/rails_com/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- qinmingyuan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
- - "<="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '6.0'
|
33
|
-
description:
|
33
|
+
description: Common utils for Rails Application
|
34
34
|
email:
|
35
35
|
- mingyuan0715@foxmail.com
|
36
36
|
executables: []
|
@@ -129,7 +129,7 @@ files:
|
|
129
129
|
- lib/templates/erb/scaffold/show.html.erb.tt
|
130
130
|
- lib/templates/rails/scaffold_controller/api_controller.rb.tt
|
131
131
|
- lib/templates/rails/scaffold_controller/controller.rb.tt
|
132
|
-
homepage: https://github.com/
|
132
|
+
homepage: https://github.com/yougexiangfa/rails_com
|
133
133
|
licenses:
|
134
134
|
- LGPL-3.0
|
135
135
|
metadata: {}
|