Skip to content

Commit 17772ce

Browse files
authored
fix(rack 3): Fixes #1456 per #1457 (#1462)
* fix(rack 3): Fixes #1456 per #1457 * ci: exclude incidental failure in old Ruby/Rails
1 parent 190d1b3 commit 17772ce

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/tests.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
exclude:
2626
- ruby: 2.7.2
2727
rails: 5.0.7.2
28+
- ruby: 2.6.6
29+
rails: 5.0.7.2
2830
- ruby: 2.7.2
2931
rails: 4.2.11
3032
- ruby: 2.6.6
@@ -41,4 +43,4 @@ jobs:
4143
- name: Install dependencies
4244
run: bundle install --jobs 4 --retry 3
4345
- name: Run tests
44-
run: bundle exec rake test
46+
run: bundle exec rake test

lib/jsonapi/error.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def initialize(options = {})
1515
@source = options[:source]
1616
@links = options[:links]
1717

18-
@status = Rack::Utils::SYMBOL_TO_STATUS_CODE[options[:status]].to_s
18+
@status = Rack::Utils.status_code(options[:status]).to_s
1919
@meta = options[:meta]
2020
end
2121

0 commit comments

Comments
 (0)