We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b465f9 commit 8ed60b9Copy full SHA for 8ed60b9
app/models/pacbio/pool.rb
@@ -20,7 +20,7 @@ class Pool < ApplicationRecord
20
21
def library_attributes=(library_options)
22
self.libraries = library_options.map do |attributes|
23
- if attributes[:id]
+ if attributes['id']
24
update_library(attributes)
25
else
26
Pacbio::Library.new(attributes)
@@ -31,7 +31,7 @@ def library_attributes=(library_options)
31
private
32
33
def update_library(attributes)
34
- id = attributes[:id].to_s
+ id = attributes['id'].to_s
35
indexed_libraries.fetch(id) { missing_library(id) }
36
.tap { |l| l.update(attributes) }
37
end
0 commit comments