New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a way decorate_attribute
for attribute type decoration
#41262
Conversation
Just an implementation for rails#41139 (comment).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Are there any other ramifications we'd need to be aware of with this? If not, then we're just missing a CHANGELOG entry.
I'd say no, it is just a wrapper for I'll add a CHANGELOG entry later before merging this. |
Cool, let's go for it 👍 |
I think we should have a |
I don't intend to expose the internal If we prefer to entirely avoid the internal behavior in |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Go away @rails-bot /cc @kamipo |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This adds support for decorating Active Model attribute types, similar to Active Record, but with the `decorate_attribute` API from rails#41262. For now, this is kept as a private API. Co-authored-by: Ryuta Kamizono <kamipo@gmail.com>
This adds support for decorating Active Model attribute types, similar to Active Record, but with the `decorate_attribute` API from rails#41262. For now, this is kept as a private API. Co-authored-by: Ryuta Kamizono <kamipo@gmail.com>
This adds support for decorating Active Model attribute types, similar to Active Record, but with the `decorate_attribute` API from rails#41262. For now, this is kept as a private API. Co-authored-by: Ryuta Kamizono <kamipo@gmail.com>
Closing in favor of #44665. |
Just an implementation for #41139 (comment).
cc @kaspth