Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/api/v2/bait_library_layouts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Comment thread
yoldas marked this conversation as resolved.

errors = details.map { |detail| { title: title, detail: detail, code: status_code, status: status_code } }

Expand Down
Loading