Skip to content

BadgeLabelHelper autoload Deprecation Warning #936

@Robstaa

Description

@Robstaa

Using
rails (~> 6.0.2, >= 6.0.2.1)
twitter-bootstrap-rails (3.2.2)

I get following Warning when running my tests via rspec:

DEPRECATION WARNING: Initialization autoloaded the constant BadgeLabelHelper.

Being able to do this is deprecated. Autoloading during initialization is going
to be an error condition in future versions of Rails.

Reloading does not reboot the application, and therefore code executed during
initialization does not run again. So, if you reload BadgeLabelHelper, for example,
the expected changes won't be reflected in that stale Module object.

This autoloaded constant has been unloaded.

Please, check the "Autoloading and Reloading Constants" guide for solutions.
 (called from <top (required)> at /Users/robinzuschke/code/robstaa/plurapolit/webapi/config/environment.rb:7)
```

Is there a plan to fix this in upcoming versions, or an easy manual fix? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions