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

Add has_one :through and has_many :through associations #21

Open
rferg opened this issue Mar 30, 2023 · 0 comments
Open

Add has_one :through and has_many :through associations #21

rferg opened this issue Mar 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@rferg
Copy link
Contributor

rferg commented Mar 30, 2023

We use these on a few models. Alternative solutions, like using scoped_as or additional instance methods are cumbersome and leak information (e.g., foreign key attribute names).

Additionally, a common abstraction would allow for general optimizations of these queries without breaking changes.

@rferg rferg added the enhancement New feature or request label Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant