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 rails 6.1 errors is now array warnings #8408

Merged

Commits on Aug 12, 2022

  1. Fix rails 6.1 errors is now array warnings

    Fixes this warning in several places in the test suite:
    ```
      In Rails 6.1, `errors` is an array of Error objects,
      therefore it should be accessed by a block with a single block
      parameter like this:
    
      person.errors.each do |error|
        attribute = error.attribute
        message = error.message
      end
    
      You are passing a block expecting two parameters,
      so the old hash behavior is simulated. As this is deprecated,
      this will result in an ArgumentError in Rails 7.0.
    ```
    jrafanie committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    3f3815e View commit details
    Browse the repository at this point in the history