solidus_dev_support
solidus_dev_support copied to clipboard
Create override generator
It would be useful to have an override generator that creates the right placeholder module in the right path.
I like this idea, were you thinking about something like this:
PBC ~/code/my_solidus_extention # ./bin/override Spree::Product MyDecorator
- adds override file
my_decorator.rb
with mod..prepend onSpree::Product
- adds
my_decorator_spec.rb
- ?
@peterberkenbosch correct, that was more or less the idea! Instead of having a bin/override
though, we can just use the existing CLI.
Should we still call them decorators? There has been, or is a discussion going on this. we could call it monkey_patch
? I do not have a very strong opinion on this, but I know others might.
I like decorators, although recently we have started calling them prependers. In fact, I think we should hold off on this one for a while because we're still considering whether Prependers should become a standard in the Solidus world.
I like prependers! Looking at that repo linked again too. Will keep this on hold.