Open
Conversation
Member
|
@gmhawash Thanks so much for the PR! Before I look into this, have you tried using the It should work out like this: expose :certificate, parent: :tenant, model: DB1::Certificate |
Author
|
@mattpolito the code prevents parent and model to be used at the same time. |
Member
|
I'd like to remedy the 'incompatible option' situation over adding and additional option for name-spacing. Let me look into that. |
Author
|
I would be happy to try it if you do it soonish. Thanks |
Member
|
I'm planning to take a look at it toward the end of the month around the holidays |
Author
|
Ok let me know when it is ready
… On Dec 5, 2024, at 9:06 AM, Matt Polito ***@***.***> wrote:
I'm planning to take a look at it toward the end of the month around the holidays
—
Reply to this email directly, view it on GitHub <#206 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAALW4UEFUZYXTLRAETBGX32ECBX7AVCNFSM6AAAAABS37WGNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRQHEZTQMJYGI>.
You are receiving this because you were mentioned.
|
Author
|
@mattpolito Hi Matt, did you get a chance to take a look at this issue? |
Member
|
@gmhawash I did not, was sick my entire vacation when I was going to look into it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Our use case allows for models to be namespaced as we're taking advantage of Rails Multi-Database access. As a result, each database models are namespaced; e.g.,
DB1::Tenant. We also want to be able to use theparentorscopeoption when we access sub-associations. e.g.,DB1::Tenant.has_many :certificates, hence:This translates to: