Developer Console Feature#1755
Merged
neilvcarvalho merged 3 commits intothoughtbot:mainfrom Jul 11, 2025
Merged
Conversation
- `bin/console` opens an IRB console, with factory_bot already loaded. - The session method `reload!` will reload all gem files.
Contributor
There was a problem hiding this comment.
Pull Request Overview
Adds an interactive reload! helper in the IRB configuration to unload and reload the factory_bot gem during a console session without restarting.
- Implements
reload!in.irbrcto remove theFactoryBotconstant and related loaded features - Re-requires
factory_botand signals success to the user
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
neilvcarvalho
approved these changes
Jul 11, 2025
Member
neilvcarvalho
left a comment
There was a problem hiding this comment.
This is awesome. Thank you!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Developer helper to quickly open an IRB console with the gem code already loaded:
bin/consoleIt also has a built-in
reload!method that will reload a fresh copy of the files.There is no change to any gem code.
reload!method is define in.irbbin/console.setupensures the shell environment:It's easier to debug using an IDE with an integrated debugger, but sometimes you just want to play with the code 🚀