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

Use lazy load hooks to extend ActiveRecord::Base #115

Merged
merged 1 commit into from
Sep 30, 2023

Conversation

tagliala
Copy link
Contributor

Extend ActiveRecord::Base functionality only after ActiveRecord has been fully loaded.

Ref: thoughtbot/factory_bot_rails#426


Hello, this is an attempt to fix a compatibility issue with the upcoming Factory Bot Rails 6.4.0.

This is the easiest thing that would work, but other approaches are possible, like an autoload functionality

@coveralls
Copy link

coveralls commented Sep 27, 2023

Coverage Status

coverage: 95.324% (+0.02%) from 95.307% when pulling c36d1ad on tagliala:bugfix/use-lazy-load-hooks into e62cc30 on amoeba-rb:master.

@jrmhaig
Copy link
Collaborator

jrmhaig commented Sep 27, 2023

Thank you for this PR. I can get a release out for this as it looks straightforward. However, I stress that I am not really the maintainer of this gem, just the last person to have touched it. The person who originally created it has disappeared and I intend to try to get to understand it better but I haven't had the time. Help would be appreciated.

@jrmhaig
Copy link
Collaborator

jrmhaig commented Sep 27, 2023

Could you please rebase. I have updated the tests so that they should complete properly.

Extend ActiveRecord::Base functionality only after ActiveRecord has been
fully loaded.

Ref: thoughtbot/factory_bot_rails#426
@tagliala tagliala force-pushed the bugfix/use-lazy-load-hooks branch from 2c79860 to c36d1ad Compare September 29, 2023 20:11
@tagliala
Copy link
Contributor Author

Rebased, thanks

Do you have access to rubygems to release a new version?

@jrmhaig
Copy link
Collaborator

jrmhaig commented Sep 30, 2023

Do you have access to rubygems to release a new version?

That's great. Yes, I have access to rubygems.

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.

3 participants