From 66c34e4682965272060a121b6e362af67ed4be5f Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 27 Aug 2015 20:28:25 +0200 Subject: Initial GUI for Nestec models --- lib/compound.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/compound.rb') 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 -- cgit v1.2.3