You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add find_rails_root helper that walks upward from current directory
looking for config/environment.rb to locate the Rails root, instead
of assuming the current working directory is the Rails root.
Changes:
- Add find_rails_root() method that searches parent directories
- Returns nil if Rails root cannot be found (reaches filesystem root)
- Update generate_packs_if_needed to use Rails root for all paths
- Build absolute path to config/initializers/react_on_rails.rb
Benefits:
- Works regardless of current working directory
- More robust when hook is called from subdirectories
- Gracefully handles non-Rails environments
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments