Skip to content
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

AttributesProxy #21

Open
joeldrapper opened this issue Jul 11, 2023 · 2 comments
Open

AttributesProxy #21

joeldrapper opened this issue Jul 11, 2023 · 2 comments
Milestone

Comments

@joeldrapper
Copy link
Owner

joeldrapper commented Jul 11, 2023

A module that behaves like Literal::Attributes, but proxies all the setting and getting to super. This could be used on ActiveRecord models, for example.

@joeldrapper joeldrapper mentioned this issue Sep 15, 2023
4 tasks
@joeldrapper joeldrapper added this to the 1.1 milestone Jul 1, 2024
@joelmoss
Copy link

Would this also extend to ActiveModel models too? Coz I have a real need to use the ActiveModel attributes API with literal types...

attribute :therapist_id, _Union(String, Symbol)

@joeldrapper
Copy link
Owner Author

Yeah, that's what this is for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants