Re: modifying ActiveRecord::Base - where?

Ara.T.Howard
Tue, 06 Dec 2005 06:26:17 -0000

On Mon, 5 Dec 2005, Duane Johnson wrote:

> Traditionally, it would go in your lib/ folder and then you''d add
something
> like ''require "my_active_record.rb"'' in your
environment.rb file.  I usually
> go one step further and add a ''patches'' folder within
''lib'' so I can
> differentiate between rails additions and other libraries.

hmmm.  i''d like to have it autoloaded - guess i could put the require
in my
environment.rb then.  that kosher?

> Nowadays, however, it seems that plugins may do exactly what
you''re after.
> But it seems a little overkill to put one tiny method like that into a
> plugin.

agreed.


-a
--
==============================================================================|
ara [dot] t [dot] howard [at] noaa [dot] gov
| all happiness comes from the desire for others to be happy.  all misery
| comes from the desire for oneself to be happy.
| -- bodhicaryavatara
===============================================================================