You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a test with the globalize gem but doesn't work with functions that eager load the translations like with_translations and includes:
I added the required columns to the table with the translations.
Rails 7.1 added query_constraints as a way to support multiple attributes when querying associations:
https://edgeapi.rubyonrails.org/classes/ActiveRecord/Persistence/ClassMethods.html#method-i-query_constraints
This is useful to use composite keys, security or just in general for performance improvements.
I made a test with the globalize gem but doesn't work with functions that eager load the translations like
with_translations
andincludes
:I added the required columns to the table with the translations.
Example:
Without query_constraints:
With query_constraints:
Expected with query_constraints:
The text was updated successfully, but these errors were encountered: