rails_com 1.2.2 → 1.2.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: c54bcd9f05cfb6a9d5b1199c293866a7076a44522650d2801594567de4c10126
4
- data.tar.gz: f41944cdcac6ff2100ff828f32892ee528ff5cc365a9dd9ececedfa8b0b94a02
3
+ metadata.gz: 9497a96e6ecdc030a751dc26a4ec06c3744eb4d5cf489d84bd6dff80fefad756
4
+ data.tar.gz: f2d44af298db230e65e097d7b81c23f93648ea27c1cd576bf551e7b69f2a4a75
5
5
  SHA512:
6
- metadata.gz: 422d7410cbd9d0511506ff8a6ffcfe80151fe2319515a88386ed6d084bda156d138b98827b3fa6ef01212029cf4aa319337a3760a39ed923b3dae807370dfcdc
7
- data.tar.gz: 4ef5503d7a5987eae283234e681a6b8e10a0c2bdd1be62f538f5cfbb749f645b817ab52d6e146c5e902a2b94d7d1abd66f91a1183a0a46a5f71f34ff07bb0084
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
- errors: model.errors.as_json(full_messages: true),
17
- full_messages: model.errors.full_messages.join("\n")
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
 
@@ -1,3 +1,3 @@
1
1
  module RailsCom
2
- VERSION = '1.2.2'
2
+ VERSION = '1.2.3'
3
3
  end
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.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-19 00:00:00.000000000 Z
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: Rails Engine with many common utils
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/qinmingyuan/rails_com
132
+ homepage: https://github.com/yougexiangfa/rails_com
133
133
  licenses:
134
134
  - LGPL-3.0
135
135
  metadata: {}