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

Pass IDs rather than objects to .destroy #37461

Merged
merged 1 commit into from
Oct 26, 2020
Merged

Pass IDs rather than objects to .destroy #37461

merged 1 commit into from
Oct 26, 2020

Commits on Oct 26, 2020

  1. Pass IDs rather than objects to .destroy

    This raises an error in Rails 5.2:
    
    > You are passing an instance of ActiveRecord::Base to `find`. Please pass the id of the object by calling `.id`.
    Hamms committed Oct 26, 2020
    Configuration menu
    Copy the full SHA
    25c5942 View commit details
    Browse the repository at this point in the history