diff options
author | Christoph Helma <helma@in-silico.ch> | 2015-08-27 20:28:25 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2015-08-27 20:28:25 +0200 |
commit | 66c34e4682965272060a121b6e362af67ed4be5f (patch) | |
tree | 61350c4ada8cbb6ca724f3af221f229ffcd70560 /lib/compound.rb | |
parent | d542e9fe92567c54423f39904111bd5293236416 (diff) |
Initial GUI for Nestec models
Diffstat (limited to 'lib/compound.rb')
-rw-r--r-- | lib/compound.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compound.rb b/lib/compound.rb index a819f56..8f393f5 100644 --- a/lib/compound.rb +++ b/lib/compound.rb @@ -133,7 +133,7 @@ module OpenTox if self.svg_id.nil? svg = obconversion(smiles,"smi","svg") file = Mongo::Grid::File.new(svg, :filename => "#{id}.svg", :content_type => "image/svg") - update(:image_id => $gridfs.insert_one(file)) + update(:svg_id => $gridfs.insert_one(file)) end $gridfs.find_one(_id: self.svg_id).data |