Skip to content

Commit

Permalink
fix(rack 3): Fixes #1456 per #1457 (#1462)
Browse files Browse the repository at this point in the history
* fix(rack 3): Fixes #1456 per #1457

* ci: exclude incidental failure in old Ruby/Rails
  • Loading branch information
bf4 authored Nov 21, 2024
1 parent 190d1b3 commit 17772ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
exclude:
- ruby: 2.7.2
rails: 5.0.7.2
- ruby: 2.6.6
rails: 5.0.7.2
- ruby: 2.7.2
rails: 4.2.11
- ruby: 2.6.6
Expand All @@ -41,4 +43,4 @@ jobs:
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake test
run: bundle exec rake test
2 changes: 1 addition & 1 deletion lib/jsonapi/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize(options = {})
@source = options[:source]
@links = options[:links]

@status = Rack::Utils::SYMBOL_TO_STATUS_CODE[options[:status]].to_s
@status = Rack::Utils.status_code(options[:status]).to_s
@meta = options[:meta]
end

Expand Down

0 comments on commit 17772ce

Please sign in to comment.