Closed jamesarosen closed 13 years ago
given a resource class:
Foo = SC.Resource.define({ url: '/foos', schema: { id: Number, name: String, created_at: Date } });
I'd like to be able to subclass Foo and reopen the schema. Perhaps something like
Foo
Bar = Foo.define({ url: '/bars', schema: $.extend({}, Foo.schema, { foo: { type: Foo, path: "foo_id" } }) });
Done
given a resource class:
I'd like to be able to subclass
Foo
and reopen the schema. Perhaps something like