You can put the file in lib/ and add “require ‘active_record_extensions’” to config/environment.rb. The code will be loaded when you restart the server.
If you wanted to install the full plugin, you would do this:
script/plugin install svn://rubyforge.org/var/svn/arext/trunk/ar-extensions