Closed xhocquet closed 7 years ago
From the README.md:
See all valid units:
Measured::Weight.unit_names
> ["g", "kg", "lb", "oz"]
See all valid units with their aliases:
Measured::Weight.unit_names_with_aliases
> ["g", "gram", "grams", "kg", "kilogram", "kilograms", "lb", "lbs", "ounce", "ounces", "oz", "pound", "pounds"]
👍
Hey, I'm looking for an easy way to retrieve a list of units used by the library to use in a collection select. Something like:
I looked through the source and didn't see anything clearly public, would there be any interest in adding this?