-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
ActiveSupport 7.2.0 NameError
from active_support/delegation.rb:47
#52582
Comments
Thank you for the issue. Not an issue. You can use active support without requiring the top level file first. This is documented at https://guides.rubyonrails.org/active_support_core_extensions.html#cherry-picking-a-definition. Change your script to:
|
@rafaelfranca - thanks for the clarification. I'm seeing this issue with factory_bot and will open an issue there. |
brucebolt
added a commit
to alphagov/link-checker-api
that referenced
this issue
Aug 15, 2024
As per rails/rails#52582, one must `require active_support` before requiring any other definition(s) like `active_support/core_ext/module/delegation`, which is included by `factory_bot_rails`. Therefore requiring `active_support` here, until thoughtbot/factory_bot#1685 is resolved.
brucebolt
added a commit
to alphagov/publishing-api
that referenced
this issue
Aug 15, 2024
As per rails/rails#52582, one must `require active_support` before requiring any other definition(s) like `active_support/core_ext/module/delegation`, which is included by `factory_bot_rails`. Therefore requiring `active_support` here, until thoughtbot/factory_bot#1685 is resolved.
brucebolt
added a commit
to alphagov/link-checker-api
that referenced
this issue
Aug 15, 2024
As per rails/rails#52582, one must `require active_support` before requiring any other definition(s) like `active_support/core_ext/module/delegation`, which is included by `factory_bot_rails`. Therefore requiring `active_support` here, until thoughtbot/factory_bot#1685 is resolved.
KludgeKML
added a commit
to alphagov/locations-api
that referenced
this issue
Aug 21, 2024
As per rails/rails#52582, one must `require active_support` before requiring any other definition(s) like `active_support/core_ext/module/delegation`, which is included by `factory_bot_rails`. Therefore requiring `active_support` here, until thoughtbot/factory_bot#1685 is resolved. (Thanks to @brucebolt)
KludgeKML
added a commit
to alphagov/email-alert-api
that referenced
this issue
Aug 21, 2024
As per rails/rails#52582, one must `require active_support` before requiring any other definition(s) like `active_support/core_ext/module/delegation`, which is included by `factory_bot_rails`. Therefore requiring `active_support` here, until thoughtbot/factory_bot#1685 is resolved. (Thanks to @brucebolt)
KludgeKML
added a commit
to alphagov/email-alert-api
that referenced
this issue
Aug 27, 2024
As per rails/rails#52582, one must `require active_support` before requiring any other definition(s) like `active_support/core_ext/module/delegation`, which is included by `factory_bot_rails`. Therefore requiring `active_support` here, until thoughtbot/factory_bot#1685 is resolved. (Thanks to @brucebolt)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
Create
foo.rb
with the following contents:Expected behavior
With the latest ActiveSupport (7.2.0) should behave like
activesupport-7.1.3.4
:System configuration
Rails version:
n/a
activesupport-7.2.0
Ruby version:
ruby-3.2.5
The text was updated successfully, but these errors were encountered: