1
0

Dispplaying units of computed values

Fixed formula error messages display when filter formula not given
This commit is contained in:
cryptogopher
2020-03-25 23:07:59 +01:00
parent 2efdc08931
commit e7a33c684f
7 changed files with 16 additions and 14 deletions

View File

@@ -33,7 +33,7 @@ class Formula < ActiveRecord::Base
"length.times.map { |index| #{p[:content]} }" : p[:content]
args << get_binding(quantities, args, length).eval(code)
end
args.last.map { |v| [v, nil] }
args.last.map { |v| [v, self.unit] }
end
private