summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/application.rb b/application.rb
index 7ccaf05..0ffc633 100644
--- a/application.rb
+++ b/application.rb
@@ -49,10 +49,10 @@ end
post "/model/:id/?" do
- @identifier = params[:identifier]
+ identifier = params[:identifier]
begin
# get compound from SMILES
- compound = Compound.from_smiles @identifier
+ compound = Compound.from_smiles identifier
rescue
@error_report = "Attention, '#{params[:identifier]}' is not a valid SMILES string."
return @error_report