Skip to content

Commit ea63079

Browse files
committed
fix css request handling
1 parent 1e2488a commit ea63079

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/restful_error/exceptions_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ def show
1212
@status_code = status.code
1313
@reason_phrase = status.reason_phrase
1414
@response_message = @exception.try(:response_message) || RestfulError.localized_phrase(@exception.class.name, status) || nil
15-
1615
render status: status.code, formats: request.format.symbol
16+
rescue ActionView::MissingTemplate
17+
render status: status.code, formats: :text
1718
end
1819
end
1920
end

lib/restful_error/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module RestfulError
4-
VERSION = "1.0.6"
4+
VERSION = "1.0.7"
55
end

0 commit comments

Comments
 (0)