Change KL to kL, update specs for ML to kL change

This commit is contained in:
Rohan Mitchell
2014-07-17 16:16:08 +10:00
parent 58e6379e43
commit 989a14fa37
8 changed files with 10 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ module OpenFoodNetwork
def scale_for_unit_value
units = {'weight' => {1.0 => 'g', 1000.0 => 'kg', 1000000.0 => 'T'},
'volume' => {0.001 => 'mL', 1.0 => 'L', 1000.0 => 'KL'}}
'volume' => {0.001 => 'mL', 1.0 => 'L', 1000.0 => 'kL'}}
# Find the largest available unit where unit_value comes to >= 1 when expressed in it.
# If there is none available where this is true, use the smallest available unit.