restful_error 1.0.6 → 1.0.7

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: c8e6071b4fdbb38b50ba336011fd5cf54cc240d5dfd59134b9b7f16e46565ea5
4
- data.tar.gz: 14728928958b068a4c95003d219a4637fafdaec6cda266e7861d45cec5a08284
3
+ metadata.gz: 66289aa56b55c24720f1b052763927b3e7ca031b112feec6ffc6380d285b9ca9
4
+ data.tar.gz: 5593bf3449e0350618466ecf24a87a8c2d3bdf0d72c1e280057483ce65eb0103
5
5
  SHA512:
6
- metadata.gz: 4eb8293b998f8bd88268867501f4996a3f003d9d450c44f16b69bd211cd19dcaaa611f9155823b045dea619ec5fd23d5c7f900f2b2f330a50c7d387b904eb9f7
7
- data.tar.gz: 683e7e767a138ef98b635e479df9c24e2acfb60ae88440ab74c98187bd1d6ac5adb3e4d594a19cfed1f0ed42d124db85aeb9c22ca1871dba5a15b1d484f245bc
6
+ metadata.gz: 9562e8fffa76477f5e77370d92cb40edfb08e0723f73622a2921abc186e978719ad2de6173083a625afe5e18655a0971d16a92cc876ff9dde0edb958c4c7f8a9
7
+ data.tar.gz: 2d2439bd8f20101c444c233add3c8f3a8b0d17e575abe4a01472f39d6bd6ff3cf95cacc07cfbc663f1688d462c31555846b37e90541fe2f1ebb1a0e081ecdfad
@@ -12,8 +12,9 @@ module RestfulError
12
12
  @status_code = status.code
13
13
  @reason_phrase = status.reason_phrase
14
14
  @response_message = @exception.try(:response_message) || RestfulError.localized_phrase(@exception.class.name, status) || nil
15
-
16
15
  render status: status.code, formats: request.format.symbol
16
+ rescue ActionView::MissingTemplate
17
+ render status: status.code, formats: :text
17
18
  end
18
19
  end
19
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RestfulError
4
- VERSION = "1.0.6"
4
+ VERSION = "1.0.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_error
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - kuboon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-06 00:00:00.000000000 Z
11
+ date: 2025-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack