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

Fix AssociationLoader Rails 7 Deprecation Warning #147

Merged
merged 1 commit into from
Dec 20, 2021

Commits on Nov 20, 2021

  1. Fix AssociationLoader Rails 7 Deprecation Warning

    Currently running this example code with rails 7 yields the following warning:
    
    ```
    DEPRECATION WARNING: `preload` is deprecated and will be removed in Rails 7.0. Call `Preloader.new(kwargs).call` instead.
    ```
    
    Updating the preloader code to use kwargs and call silences the warning.
    keoghpe committed Nov 20, 2021
    Configuration menu
    Copy the full SHA
    726bcb6 View commit details
    Browse the repository at this point in the history