Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add i18n support for Field::HasMany (#2114)
If you have ActiveRecord i18n translation of the model you don't need to do anything extra, if not, make an ActiveRecord i18n translation of the model. e.g.: The recipe has many recipe items. ```ruby ATTRIBUTE_TYPES = { recipe_items: Field::HasMany, id: Field::Number, name: Field::String, package_spec: Field::String, remark: Field::String, created_at: Field::DateTime, updated_at: Field::DateTime, }.freeze ``` ```yaml zh-TW: activerecord: models: recipe: 配方表 recipe_item: 材料 ```
- Loading branch information