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

Limit denormalization fields in a has_many relationship? #40

Open
anlek opened this issue Jul 18, 2014 · 1 comment
Open

Limit denormalization fields in a has_many relationship? #40

anlek opened this issue Jul 18, 2014 · 1 comment

Comments

@anlek
Copy link

anlek commented Jul 18, 2014

I'm thinking if I had users and logs documents and I wanted to denormalize a summary of the logs for a given user but limit it to only 1000 logs, is there a way to currently do that in Alize?

Great job on this gem! Keep it up!

@joshed-io
Copy link
Owner

Thanks!

I don't think there is, other than overriding the hook itself to select only certain records. Great idea for a feature though. I don't think it'd be hard to add a :limit option to the DSL :)

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

2 participants