Re: [Rails] Re: Newbie seeking advice on DRYing up my model validations...

2010-04-01 Thread Lasse Bunk
Nice – glad you could use it :) /Lasse 2010/4/1 Grary > Lasse, > > Yes, that was exactly what I needed. > > I see I need to explore the specifics of mixing in (which maybe Matz's > book underserves) -- in this case it was the self.include(base) > expression that was key. > > Finally, where attr

[Rails] Re: Newbie seeking advice on DRYing up my model validations...

2010-04-01 Thread Grary
Lasse, Yes, that was exactly what I needed. I see I need to explore the specifics of mixing in (which maybe Matz's book underserves) -- in this case it was the self.include(base) expression that was key. Finally, where attributes refer logically to the same kind of data, but have different names