Created by: gracewashere
Why?
Previously, generators default to showing two decimal places
for all numbers unless a decimals
option is set.
It was confusing to see integers displayed with decimals.
Changes:
- If a field is a float, explicitly set the number of decimals to display (2).
- If a field is an integer, don't set the number of decimals.
- Change
Field::Number
to not display any decimals unless the option is set.
Tags: #ruby