when use acts_as_tenant, use belongs_to, or not? (yes say docs, no says Chris' video 11/2020)
June 9, 2021 3:45am
says at 4:30 NOT to also use "belongs_to" in addition to "acts_as_tenant" because it "can cause problems".
gives this example with both:
Which is correct?
June 10, 2021 5:48pm
I've used the example with both acts_as_tenant and belongs_to for 10+ models in my project and haven't had any issues.
June 12, 2021 4:59am
Thanks, good to know. Given the vague "can cause problems" in his video, in the absence of any specifics from Chris, I'm using both as well.
You’re not receiving notifications from this thread.
© 2021 GoRails, LLC
Terms of Service