-
Notifications
You must be signed in to change notification settings - Fork 99
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
mattr
/cattr
(aka attribute accessors) to keep up with the times
#258
Comments
Submit a PR? |
@sahal2080 Thanks for submitting this. First note that Facets and ActiveSupports
Instead of,
On the other hand ActiveSupport has options for
I have to give this some thought (more below). As for supporting blocks for default values, I guess that would be okay. Looks like all we would need to do is add
That way you can set defaults for all attributes listed. Not just the same default for all of them. Unless there is something I've overlooked, I like that approach better (though it is still possible to support block notation for comparability). Unfortunately it collides with the |
@0maxxam0 funded this issue with $10. Visit this issue on Issuehunt |
@BoostIO funded this issue with $10. Visit this issue on Issuehunt |
@Rokt33r is this spam? |
ActiveSupport's version of
mattr
changed a bit. Specifically what throw my code off was that I used the facets version but with a block which ActiveSupport version now supports.The text was updated successfully, but these errors were encountered: