Skip to content

Commit 8ed60b9

Browse files
author
James Glover
committed
Fix library assignment
1 parent 0b465f9 commit 8ed60b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/models/pacbio/pool.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Pool < ApplicationRecord
2020

2121
def library_attributes=(library_options)
2222
self.libraries = library_options.map do |attributes|
23-
if attributes[:id]
23+
if attributes['id']
2424
update_library(attributes)
2525
else
2626
Pacbio::Library.new(attributes)
@@ -31,7 +31,7 @@ def library_attributes=(library_options)
3131
private
3232

3333
def update_library(attributes)
34-
id = attributes[:id].to_s
34+
id = attributes['id'].to_s
3535
indexed_libraries.fetch(id) { missing_library(id) }
3636
.tap { |l| l.update(attributes) }
3737
end

0 commit comments

Comments
 (0)