diff --git a/Gemfile b/Gemfile index 4d1027b7ba..35c54544a3 100644 --- a/Gemfile +++ b/Gemfile @@ -72,7 +72,7 @@ group :default do # Version 0.1.1 was created from the [develop](https://github.com/sanger/jsonapi-resources/tree/develop) branch # published, and pinned for Sequencescape compatibility. # This version is tested and compatible with Rails 7.1/7.2 and Ruby 3.2/3.3. - gem 'sanger-jsonapi-resources', '~> 0.1.1' + gem 'sanger-jsonapi-resources', '~> 0.1.2' # gem 'sanger-jsonapi-resources', github: 'sanger/jsonapi-resources', branch: 'develop' gem 'csv', '~> 3.3' # Required by jsonapi-resources, previously part of ruby diff --git a/Gemfile.lock b/Gemfile.lock index b01a502360..e4ef7f0b7e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -324,11 +324,11 @@ GEM net-protocol netrc (0.11.0) nio4r (2.7.4) - nokogiri (1.18.9-arm64-darwin) + nokogiri (1.18.10-arm64-darwin) racc (~> 1.4) - nokogiri (1.18.9-x86_64-darwin) + nokogiri (1.18.10-x86_64-darwin) racc (~> 1.4) - nokogiri (1.18.9-x86_64-linux-gnu) + nokogiri (1.18.10-x86_64-linux-gnu) racc (~> 1.4) ostruct (0.6.3) parallel (1.27.0) @@ -511,7 +511,7 @@ GEM logger ruby2_keywords (0.0.5) rubyzip (2.4.1) - sanger-jsonapi-resources (0.1.1) + sanger-jsonapi-resources (0.1.2) activerecord (>= 4.1) concurrent-ruby csv @@ -704,7 +704,7 @@ DEPENDENCIES rubocop-rspec_rails ruby-prof ruby-units - sanger-jsonapi-resources (~> 0.1.1) + sanger-jsonapi-resources (~> 0.1.2) sanger_barcode_format! sanger_warren selenium-webdriver (~> 4.1) diff --git a/app/controllers/api/v2/bait_library_layouts_controller.rb b/app/controllers/api/v2/bait_library_layouts_controller.rb index 126458681f..49871889b2 100644 --- a/app/controllers/api/v2/bait_library_layouts_controller.rb +++ b/app/controllers/api/v2/bait_library_layouts_controller.rb @@ -40,7 +40,7 @@ def preview private def respond_with_errors(title, details, status) - status_code = Rack::Utils::SYMBOL_TO_STATUS_CODE[status] + status_code = Rack::Utils.status_code(status) errors = details.map { |detail| { title: title, detail: detail, code: status_code, status: status_code } }