-
Notifications
You must be signed in to change notification settings - Fork 6
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
decorating methods with default variable values #20
Comments
Actually doesn't appear to even work for me. I get:
|
Oh man, good call. Let me really think about this one. |
This is a hard one, dude. Literally no ideas. |
Darn I don't have any either. Hopefully someone at SpreeConf can think of something since I'm guessing this is the "problems" part of your lightning talk. |
Yup :( |
Actually, this entirely possible.
|
Cool in the meantime this workaround is sufficient https://github.com/jumph4x/durable_decorator#problems do you have any docs you can point me to in case I have time to get to working on this before you? Also if you could comment on spree/spree#4374 I'd like to close that out if there are no config options you know of that we should add by default. |
What happens when you want to override methods with default values?
For instance:
Guess it must be done like so:
Unless the decorated add remembers the variables default values which I'm guessing it doesn't. Is it even possible?
Or is this going to cause add to always require those variables to be passed in?
The text was updated successfully, but these errors were encountered: