generator to create representer with decorator pattern#84
generator to create representer with decorator pattern#84amkirwan wants to merge 1 commit intotrailblazer:masterfrom
Conversation
|
cool stuff! Unfortunately this will have some serious merge conflicts with the If @apotonick approves of this, we could implement this feature branch I am working on. That would save some headaches and get this feature in quicker IMO! |
|
@apotonick I can make the Decorator the default if you think that makes the most sense going forward for the project. |
|
Well, what do you think? I just like decorator better, it's a tiny little bit faster and does not pollute the model. On the other hand, I guess most people use modules, so maybe keep it. |
|
Personally I like the decorator a lot better for all the reasons that you mentioned. I'd say switch it to the default. |
|
Hmmm.... it's really up to us. Maybe you're right. |
|
I prefer decorator as default as well. |
|
👍 for decorator as default |
|
Think we got a winner. 😉 |
Added an option to the generator to create representers using the decorator pattern
bin/rails g representer -d Singerorbin/rails g representer --decorator Singergenerates: