sbilharz / formwandler

Dynamic form objects for rails
MIT License
0 stars 1 forks source link

Use model attribute translation as fallback for form attributes #16

Closed RST-J closed 5 years ago

RST-J commented 5 years ago

When #human_attribute_name is called on a Form and the respective field is backed by a model then the translation for the field's source attribute will be injected as default into the translation lookup.

If a default is explicitly passed into #human_attribute_name then this has precedence over the source attribute translation.

Closes #15