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

Rails Generators #134

Open
Aboodchei opened this issue Jun 28, 2018 · 3 comments
Open

Rails Generators #134

Aboodchei opened this issue Jun 28, 2018 · 3 comments

Comments

@Aboodchei
Copy link

It would be nice if there were rails generators, that automatically generate mutations given inputs along with types, and whether they are optional/required.

I believe such a feature will make it easier to adapt to this gem and increase usability.

Can I start implementing such a feature ? I would like to contribute

@probablykabari
Copy link

I made one a few years ago that I've been using in a project that does exactly this. I just forked the repo and will make a PR for it this weekend.

@OpenCoderX
Copy link

This feature would be great. The way I interpret the suggestion in that in a scaffold controller the default instance.update etc. calls would be replaced by mutation.run calls, is that correct?

@aquaflamingo
Copy link

I wrote a separate gem mutations_generator and added a PR #152 here to update README. I'm not sure if putting direct Rails generator code into the mutations framework is the best idea. That would require to load entire Rails dep chain even if you just wanted to use the Command pattern in a Sinatra app. I think a separate gem is a better opp.

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

4 participants