forest_admin_rails 1.0.0.pre.beta.22 → 1.0.0.pre.beta.23

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: dd8dd091e68e399375472c191d3e5388d46321fa82c47d31b02a321b6b44ba24
4
- data.tar.gz: 127716b0f83470156cecea3dcab98be9afc5ba089d46aa2e5bd5a8b61e65cd12
3
+ metadata.gz: 0e7eaabfa49605e07ae7ee1c3820c08451734c8e3e95fcbe2cfc34a65a564242
4
+ data.tar.gz: 6716ef3eff489e493187f9a04f1eb80b8127d02113fa89345fbf336c1128240b
5
5
  SHA512:
6
- metadata.gz: 6f5fed6d511ae6ef91a0f30bdc5a994df9f37fe4126a5a47418c116b828a42a354d34738b3520447b96cf14da74dda9176d93c6f8322254b0e916d9d9e43dd5a
7
- data.tar.gz: '09c1f6dfb38aefbc92242f4cd873bbfda1cab354683db58e996d8f86494f2868010fa589daa5ebd635b556373061c1686cd5b1451c85bd29a5e18e085fc4f722'
6
+ metadata.gz: a6587884e8ca7a8b9430a139a2e409059904a623d31599e8d1e960510e93475052462459633a8885b6a2d662f7f1b07fc40305ebd8139ff669120fee9efea988
7
+ data.tar.gz: ee102eeddc07cbbe569e4ba77368b5e1bac92915369af442386ddc36a1b8c597ea971d646e7f8c520dea863c436c930c0409b5aafc14ea6ae8d4157e0d9333d1
@@ -33,19 +33,19 @@ module ForestAdminRails
33
33
  {
34
34
  name: exception.name,
35
35
  detail: exception.message,
36
- status: exception.status
36
+ status: exception.try(:status)
37
37
  }
38
38
  ]
39
39
  }
40
40
 
41
- data[:errors][0][:data] = exception.data if exception.defined? :data
41
+ data[:errors][0][:data] = exception.try(:data)
42
42
 
43
43
  # TODO: IMPLEMENT LOGGING
44
44
  # if Facades::Container.cache(:is_production)
45
45
  # end
46
46
  end
47
47
 
48
- render json: data, status: exception.status
48
+ render json: data, status: exception.try(:status)
49
49
  end
50
50
  end
51
51
  end
@@ -1,3 +1,3 @@
1
1
  module ForestAdminRails
2
- VERSION = "1.0.0-beta.22"
2
+ VERSION = "1.0.0-beta.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.22
4
+ version: 1.0.0.pre.beta.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-08 00:00:00.000000000 Z
12
+ date: 2023-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dry-configurable