Re: Expand Active Record

Robby Russell
2007-09-04T18:54:16Z

Mindtonic wrote:
> Silly question, how do I expand (add a function to) Active Record for
> all of my models?
>

Depends on where in Active Record you want to extend it.

In a nutshell, you just create a new module and include it in ActiveRecord.




--
Robby Russell
http://www.robbyonrails.com      # my blog
http://www.planetargon.com       # my business
http://www.programmingrails.com  # my book