Skip to content

require_dependency in now deprecated and will be removed in Rails 9 #4354

@adrienpoly

Description

@adrienpoly

Describe the bug

I was trying to upgrade an app to use Rails edge version and we are getting lots of Rails deprecation warnings. require_dependency is now deprecated and will be removed in Rails 9. Avo code base still has a few require_dependency in the controllers https://github.com/search?q=repo%3Aavo-hq%2Favo%20require_dependency&type=code

Associated PR rails/rails#56992

Reproduction repository for the bug

Any Rails app running main branch

Steps to use in the reproduction repository

Steps to reproduce the behavior:

  1. Add this configuration '...'
  2. Go to '...'
  3. Click on '....'
  4. Scroll down to '....'
  5. See error

Expected behavior & Actual behavior

System configuration

Avo version: 3.X

Rails version: edge/8.2.alpha

License type:

  • Community
  • Pro
  • Advanced

Are you using Avo monkey patches, overriding views or view components?

  • Yes. If so, please post code samples.
  • [x ] No

Impact

  • High impact (It makes my app un-usable.)
  • Medium impact (I'm annoyed, but I'll live.)
  • Low impact (It's really a tiny thing that I could live with.)

Urgency

  • High urgency (I can't continue development without it.)
  • Medium urgency (I found a workaround, but I'd love to have it fixed.)
  • Low urgency (It can wait. I just wanted you to know about it.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions