-
Notifications
You must be signed in to change notification settings - Fork 35
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
Composite Resources Possible DSL #24
Comments
I feel like we're getting to far into DSL land here. I'm much more of a fan of Davids original API sketch: https://gist.github.com/dhh/b0a106a00e8737280666#file-aggregator-rb-L7 To me having a method users can override to setup the relationships themselves feels like the clearer and easier way to go. What do you guys think? |
👍 |
Alright I'll close this then. Thanks for the input 😄 |
@kaspth I didn't get why you closed this issue. I liked your suggestion and in search for how to implement it, also I hope to let this issue open for any other suggestions and questions. |
Sorry I was under the impression this was specifically about the above DSL sample and not a general discussion. |
I opened this issue to discuss the possible DSL ideas for the Composite Resources feature.
The feature is:
Imagine the case when in user signup form user can enter company name and the company will be automatically created:
Instead of code above, we could provide some API.
I just need to understand the difference between this and the
association
method, is this for the resources that have no relations to the main model? If so what do you imagine/suggest a good DSL to do so?I have a very rough suggestion:
@kirs please if you have any ideas in mind lets discuss them here.
The text was updated successfully, but these errors were encountered: