Issue with Displaying Nested Model with Default Scope #8276
Unanswered
ror-web-expert
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The error message suggests that there is an issue with finding a tournament with a specific ID because the default scope applied in the Tournament model is filtering out archived tournaments. Here's a sentence for the ticket title:
Error encountered when listing groups in Active Admin due to default scope filtering out archived tournaments.
Note:
When we open the details of an active tournament, everything works fine and its associated groups are listed down. However, when we try to open the details of an archived tournament, the details page loads successfully but the associated groups do not populate. I have attached the file for reference, and if further details are needed, please let me know. This needs to be addressed for consistency across all our teams and instances
Gemfile:
Tournament model
Tournament Groups model:
Active admin: admin/tournament.rb
admin/torunment_groups.rb
Beta Was this translation helpful? Give feedback.
All reactions