zhong
zhong copied to clipboard
Import 'active_support' before any of its subparts
TL;DR, Fix compatibility with ActiveSupport >7 which now require "active_support" before anything else
What?
- Add
require "active_support"
before any other active_support requires
Why?
- Fixes #40
- This issue has been brought to the attention to Rails maintainers, as it has broken a few gems.
see this reply from the maintainers
you must require "active_support" before requiring any subparts. That may change in the future, but for now that's the fix you are looking for.
- ActiveSupport since v7 auto-loads (lazy-load) all its constants here
@nickelser any chance we get this change in?
Closing because this does not seem to be an issue anymore in up to date ActiveRecord
FYI this is an issue on Rails 7.1 again