Rails 7 now allows automatic inverse_of detection for associations with scopes | Saeloun Blog
03-Feb-2022 1438
This update ensures that "inverse_of" takes into consideration the relevant scope when calculating the object to store in memory.ActiveRecord has many tricks up its sleeve. One of the many is this seemingly simple association option called inverse_of, which helps us to explicitly declare bi-directional associations.
Rails 7 now allows automatic inverse_of detection for associations with scopes | Saeloun Blog #ruby #rubydeveloper #rubyonrails #Rails #allows #automatic #inverse_of #detection #associations #scopes #Saeloun #blog https://rubyonrails.ba/link/rails-7-now-allows-automatic-inverse_of-detection-for-associations-with-scopes-saeloun-blog