Hello there,
Matthias Folz and I have added the 'has_many' and 'has_one' -
associations through reflections in ActiveResource.
Now, It's possible to specify the class for a "Child-Resource"
via :class_name - option in has_many and has_one - association
definition.
We choosed the way through reflections, because in we plan to
add some other cool features for associations like 'autoload' in
ActiveResource.
For example:
GET /posts/123.xml delivers following response body:
<post>
<title>ActiveResource now have associations</title>
<content> ... </content>
<comments>
<comment> ... </comment>
<comment> ... </comment>
</comments>
</post>
has_many :comments, :class_name =>
‘myblog/comment‘
Would resolve this comments into the Myblog::Comment class.
Greetz and thanks a lot for viewing this ticket!
Markus Schwed