You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the discussion here, it seems like there are a lot of use cases for supporting complex parameter (attribute) types - for example, arrays of integers and arrays of strings. These type objects could coerce input into a nicer format and also perform some validations.
The main use case for this is an array of ids. One possibility is to use a macro like ids_attribute :post_ids inside a Task to specify this, and to build it using ActiveModel::Type and ActiveModel::Validation objects.
Let's keep an eye out for user feedback and figure out how to provide the most value here.
The text was updated successfully, but these errors were encountered:
This issue has been marked as stale because it has not been commented on in two months.
Please reply in order to keep the issue open. Otherwise, it will close in 14 days.
Thank you for contributing!
From the discussion here, it seems like there are a lot of use cases for supporting complex parameter (attribute) types - for example, arrays of integers and arrays of strings. These type objects could coerce input into a nicer format and also perform some validations.
The main use case for this is an array of ids. One possibility is to use a macro like
ids_attribute :post_ids
inside a Task to specify this, and to build it usingActiveModel::Type
andActiveModel::Validation
objects.Let's keep an eye out for user feedback and figure out how to provide the most value here.
The text was updated successfully, but these errors were encountered: