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
Refactors the patches directory to leverage Ruby's module prepend mechanism
instead of direct `class_eval` calls. This will introduce dedicated modules under the
`InertiaRails` namespace that are systematically prepended to their target
classes.
This architectural change offers several benefits:
- Improves debugging capabilities through clearer stack traces
- Better encapsulation of Rails core modifications
- More maintainable and predictable method lookup chain
The new approach provides a cleaner separation of concerns while maintaining
the same functional behavior of the original implementation.
This commit rewrites the code in patches directory to avoid calling
`class_eval` directly. Instead, it defines modules defined under
`InertiaRails` namespaces that get prepended to their respective classes.
This should make things easier to debug as well as keeping the code
responsible for modifying the core Rails logic encapsulated
0 commit comments