Shopify / measured

Encapsulate measurements and their units in Ruby and Ruby on Rails.
MIT License
337 stars 28 forks source link

Initialize with nil #8

Closed kmcphillips closed 9 years ago

kmcphillips commented 9 years ago

@Shopify/shipping

If you initialized a measurement with nil as the value, previously it would attempt to parse it as a string internally and raise a very unclear error.

Raise explicitly for nil values.

garethson commented 9 years ago

:+1: