I\'m monkey-patching a Rails engine with something like:
SomeClass.class_eval do
# ...
end
The first time I hit the web site, on developm
Unfortunately, there is no way to hook into the reloading mechanism of Rails 2.x.
What you could do, is place your patch somewhere in the app or lib directory. (lib/core_ext is probably the preferred location). Then add the directory to the autoload_paths in your config.
You might also need to open the class, rather than using class_eval.