On Jun 22, 5:18 pm, Alexander Trauzzi wrote:
> I want to decorate ActiveRecord with a new method so that any classes
> that inherit from it also have the method.
>
> I've been told that initializers are the way to go, yet when I put a
> file in initializers containing:
>
> class << ActiveRecord
Frederick Cheung wrote:
> On Jun 22, 5:18�pm, Alexander Trauzzi s.net> wrote:
>>
>> end
>>
> Did you want to add a class method or were you intending to add an
> instance method ?
>
> Fred
Instance. So any instances of ActiveRecord (my models) would have the
method.
--
Posted via http://www.
2 matches
Mail list logo