[Rails-core] Re: 'columns' in Active Resource - proposed patch

2009-12-15 Thread taryneast
and now I've got some baseline code working the discussion has moved to a new thread: http://groups.google.com/group/rubyonrails-core/browse_thread/thread/6b9631841a4daea2 Taryn On Dec 3, 6:05 pm, taryneast wrote: > Just to continue the thread... I'm back on this (now that NaNoWriMo is > over).

[Rails-core] Re: 'columns' in Active Resource - proposed patch

2009-12-03 Thread taryneast
Just to continue the thread... I'm back on this (now that NaNoWriMo is over). I've ported my columns over to schema and added tests. The current patch is still using an array of names for the schema (so obviously not the eventual requirement), but it's getting there. If anybody wants to check it

[Rails-core] Re: 'columns' in Active Resource - proposed patch

2009-10-16 Thread taryneast
On Oct 14, 10:52 pm, Michael Koziarski wrote: > > As a bare minimum - just name-type key pairs could work quite well to > > begin with eg: > > >http://my_remote_site/people/schema.xml > > > returns: > > > > >   > >   > >   > > > > The problem with this is we're reinventing a schema language an

[Rails-core] Re: 'columns' in Active Resource - proposed patch

2009-10-14 Thread Michael Koziarski
> As a bare minimum - just name-type key pairs could work quite well to > begin with eg: > > http://my_remote_site/people/schema.xml > > returns: > > >   >   >   > The problem with this is we're reinventing a schema language and people are going to (rightly) ask why not just use relaxng or xsd.

[Rails-core] Re: 'columns' in Active Resource - proposed patch

2009-10-07 Thread taryneast
On Oct 2, 6:30 pm, Joshua Peek wrote: > So David and I decided we both like "schema" for containing the list > of attributes and types for the model. It seems like a good fit for > any "ActiveModel". > > In ActiveResource's case, it will have an "undefined schema" by > default where it just uses

[Rails-core] Re: 'columns' in Active Resource - proposed patch

2009-10-02 Thread Joshua Peek
So David and I decided we both like "schema" for containing the list of attributes and types for the model. It seems like a good fit for any "ActiveModel". In ActiveResource's case, it will have an "undefined schema" by default where it just uses any attribute it receives in the response. This ba

[Rails-core] Re: 'columns' in Active Resource - proposed patch

2009-10-02 Thread taryneast
On Sep 28, 6:55 pm, Joshua Peek wrote: > Hey Taryn, sorry it took so long for me to get back to you. > > My only concern is the "column" name, as Koz mentioned. We really > should have a common term other than "column" that could apply to any > ActiveModel. > > I'm trying to contact DHH or Rick

[Rails-core] Re: 'columns' in Active Resource - proposed patch

2009-09-28 Thread Joshua Peek
Hey Taryn, sorry it took so long for me to get back to you. My only concern is the "column" name, as Koz mentioned. We really should have a common term other than "column" that could apply to any ActiveModel. I'm trying to contact DHH or Rick Olson who drafted some of this stuff already. -- Jos

[Rails-core] Re: 'columns' in Active Resource - proposed patch

2009-09-10 Thread taryneast
On Sep 8, 4:48 am, Michael Koziarski wrote: > > I've provided a working proposed patch (below) to implement this and > > would value opinion on a) the patch as is and b) any other options. > > > Note - this follows from discussion (and my original proposal) in the > > following thread: > >http:

[Rails-core] Re: 'columns' in Active Resource - proposed patch

2009-09-07 Thread Michael Koziarski
> I've provided a working proposed patch (below) to implement this and > would value opinion on a) the patch as is and b) any other options. > > Note - this follows from discussion (and my original proposal) in the > following thread: > http://groups.google.com/group/rubyonrails-core/browse_thread