Vizir/carnival

The class method BaseAdminPresenter#field should validates its definitions

cartolari opened this issue · 0 comments

When a field is defined no validation is done at all. Some validations should exists include:

  • For simple scalar values if the field exists or if the object responds_to? or responds_to_missing? that field.
  • For related columns (the ones that have owner_relation or relation_column in the params), the method should validates if the relations exists and if the field exists in that relations, just like the previous point.