Modifying lib/active_record/base.rb

is there a process in place for how one would go about modifying AR
base.rb?

I mean, I could modify the source file itself in but then that would
result
in all apps using the new code, so is there a way i can basically make a
copy of base.rb to use in a single app for testing purposes?

also, is there a way to submit the changes to the rails developers?

thanks

Chris

I mean, I could modify the source file itself in but then that would result in
all apps using the new code, so is there a way i can basically make a copy of
base.rb to use in a single app for testing purposes?

You would either want to put a rails checkout in vendor/ and mess with
your local install, or do what we usually do (since Ruby is so darned
dynamic) and simply override ActiveRecord methods (etc.) by reopening
the appropriate classes and modules and redefining things on the fly.

also, is there a way to submit the changes to the rails developers?

File a [PATCH] ticket at http://dev.rubyonrails.com/

Rick

http://www.rickbradley.com MUPRN: 641
| standards compliant
random email haiku | browsers than that never quite
| seems to get it right.