Skip to content
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

Remove upfront extension requires #24

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

waiting-for-dev
Copy link
Member

Overview

This commit addresses an issue where we were requiring all extension files upfront, which could raise errors if the required gems were not present in the user's environment. To resolve this, we've removed the automatic requires for ActiveRecord and ROM extensions from lib/dry/operation.rb.

Instead, we've updated the documentation in both ActiveRecord and ROM extension files to include the necessary require statement in the example code. To ensure our tests continue to pass with these changes, we've also added the requires to the spec_helper file.

See report: 92cdde9#commitcomment-146824502

Screenshots/Screencasts

Details

This commit addresses an issue where we were requiring all extension
files upfront, which could raise errors if the required gems were not
present in the user's environment. To resolve this, we've removed the
automatic requires for ActiveRecord and ROM extensions from
lib/dry/operation.rb.

Instead, we've updated the documentation in both ActiveRecord and ROM
extension files to include the necessary require statement in the example
code. To ensure our tests continue to pass with these changes, we've also added
the requires to the spec_helper file.

See report: 92cdde9#commitcomment-146824502
waiting-for-dev referenced this pull request Sep 17, 2024
After merging [#20](#20) we
need to do explicit with extensions.
@waiting-for-dev waiting-for-dev merged commit c7d757b into main Sep 20, 2024
6 checks passed
@waiting-for-dev waiting-for-dev deleted the waiting-for-dev/fix_requiring_extensions branch September 20, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant