Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use o.reload.assoc, assoc(true) is gone
Note, the before_save was calling remove_invalid_resource on create which didn't make sense because it was trying to find service_resources with orphaned resources, which can't happen unless the service_template itself has been saved. Because of this, it makes sense to change this to before_update instead of adding r.persisted? checks in the remove_invalid_resource method. The force reload parameter was removed from associations in: rails/rails@09cac8c67af It was previously deprecated here: rails/rails@6eae366 From that commit: For collections: @user.posts.reload # Instead of @user.posts(true) For singular associations: @user.reload.profile # Instead of @user.profile(true) Extracted from #18076
- Loading branch information