Hint

Stick something like this at the many end of a has_many and then run a
to_xml, :include the many, and then try and parse it at the other end of an
ActiveResource.


On Thu, Dec 4, 2008 at 3:34 PM, Francis Fish <[EMAIL PROTECTED]> wrote:

> Just been burned by this, as a Friday puzzle tomorrow, see if you can work
> out what's wrong:
>
>   alias old_to_xml to_xml
>
>   def to_xml(options = {})
>     (options[:except] ||= []) << :company_id << :client_id << :id
>     (options[:include] ||= []) << :address
>     (options[:methods] ||= []) << :company_name
>     old_to_xml(options)
>   end
>
> :)
>
> Don't spoil it, tell us on Monday
>
> F
>



-- 
Thanks and regards,

Francis Fish

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to