Skip to content

Commit ffc23d8

Browse files
authored
Merge pull request #6 from sanger/y25-319-from-master-as-psd-we-need-to-fix-the-json-api-resource-incompatibility-with-rack-which-is-causing-422-errors-to-fail-with-a-status-of-0
Y25-319 - [PR] [Master] Add compatibility for obsolete Rack status symbols
2 parents 98a6958 + a098867 commit ffc23d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/jsonapi/error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize(options = {})
1717
@source = options[:source]
1818
@links = options[:links]
1919

20-
@status = Rack::Utils::SYMBOL_TO_STATUS_CODE[options[:status]].to_s
20+
@status = Rack::Utils.status_code(options[:status]).to_s
2121
@meta = options[:meta]
2222
end
2323

lib/jsonapi/resources/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module JSONAPI
22
module Resources
3-
VERSION = '0.2.0'
3+
VERSION = '0.2.1'
44
end
55
end

0 commit comments

Comments
 (0)