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

Check module inclusion instead of respond_to? #132

Merged

Conversation

tagliala
Copy link
Member

Checks if the module AsOfTimeHolder is included in the model rather
than using respond_to? to prevent stack overflow when a model
delegates missing methods to an association.

Fix #131

@tagliala tagliala force-pushed the bugfix/fix-stack-overflow-with-delegate-missing-to-131 branch from 7c9ab29 to c7cdc6d Compare January 22, 2022 14:14
Checks if the module `AsOfTimeHolder` is included in the model rather
than using `respond_to?` to prevent stack overflow when a model
delegates missing methods to an association.

Fix #131
@tagliala tagliala force-pushed the bugfix/fix-stack-overflow-with-delegate-missing-to-131 branch from c7cdc6d to b115bac Compare January 22, 2022 14:27
@tagliala tagliala marked this pull request as ready for review January 24, 2022 07:30
@tagliala tagliala merged commit 17447b6 into master Jan 24, 2022
@tagliala tagliala deleted the bugfix/fix-stack-overflow-with-delegate-missing-to-131 branch January 24, 2022 09:00
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

Successfully merging this pull request may close these issues.

Stack level too deep when accessing an ActiveStorage object
1 participant