zhong icon indicating copy to clipboard operation
zhong copied to clipboard

Import 'active_support' before any of its subparts

Open godric opened this issue 2 years ago • 3 comments

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

godric avatar Mar 01 '22 11:03 godric

@nickelser any chance we get this change in?

mkonecny avatar Nov 24 '22 18:11 mkonecny

Closing because this does not seem to be an issue anymore in up to date ActiveRecord

godric avatar Aug 08 '23 14:08 godric

FYI this is an issue on Rails 7.1 again

mlarraz avatar May 06 '24 21:05 mlarraz