Displaying errors for uncomputable formulas in nutrients view
This commit is contained in:
@@ -30,9 +30,6 @@ class Formula < ActiveRecord::Base
|
||||
args << get_binding(quantities, args, length).eval(code)
|
||||
end
|
||||
args.last.map { |v| [v, nil] }
|
||||
rescue Exception => e
|
||||
puts e.message
|
||||
[[nil, nil]] * length
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user