[Rails] Re: ROXML from_xml not returning an object instance...

2009-02-12 Thread Ben Woosley
Alright, I found that this actually required a bit more to work properly, but if you look at my latest code: http://github.com/Empact/roxml/tree/master, I have a examples/active_record.rb, and spec/examples/active_record.rb to show it's working properly. So install this latest version from my

[Rails] Re: ROXML from_xml not returning an object instance...

2009-02-05 Thread Ben Woosley
Alright, the problem seems to be that ROXML uses the Object#allocate to generate objects, and never calls #initialize on those objects, owing to the fact that you would want to initialize differently in a world where your attributes are already initialized than in one where they are not (which is

[Rails] Re: ROXML from_xml not returning an object instance...

2009-02-04 Thread Ben Woosley
Hey Adam, I'll take a look at this later today and get back to you. I specifically haven't tested intermixing ROXMl and ActiveRecord (as you have with :waypoints). I suspect the problem is that I'm setting the instance variable rather than going through the proxy accessor. I'll post here