Re: [friendly] Attribute inheritance
- From:
- Alan deLevie
- Date:
- 2010-01-03 @ 04:19
I want to create a sort of base model with a certain set of attributes. Then
I'd have several models inherit those attributes.
Here's an article which shows how to do this in MongoDB:
http://railstips.org/2009/12/18/why-i-think-mongo-is-to-databases-what-rails-was-to-frameworks
Notice how the author creates a subclass of a class called "Item" that
inherits its attributes.
On Sat, Jan 2, 2010 at 9:40 PM, James Golick <jamesgolick@gmail.com> wrote:
> What happens exactly?
>
>
> On Sat, Jan 2, 2010 at 7:56 PM, Alan deLevie <adelevie@gmail.com> wrote:
>
>> I'm having trouble getting this to work with Friendly. Is there a
>> solution?
>> http://gist.github.com/267774
>>
>
>