This project is archived and is in readonly mode.
Deprecation warning in xml serializer
Reported by Sébastien Grosjean - ZenCocoon | February 19th, 2009 @ 08:15 PM | in 2.x
Hi,
it seem to remain a deprecation in activerecord's xml serializer (using edge rails):
rails/activerecord/lib/active_record/serializers/xml_serializer.rb:317: warning: Object#type is deprecated; use Object#class
Comments and changes to this ticket
-
Sébastien Grosjean - ZenCocoon February 19th, 2009 @ 08:20 PM
- Assigned user set to Jeremy Kemper
-
Jeremy Kemper February 19th, 2009 @ 08:24 PM
- State changed from new to invalid
type is a method on the column returned from columns_hash[name]
I'd guess you're serializing an attribute without a column so it's calling nil.type, which gives a Ruby warning.
-
Sébastien Grosjean - ZenCocoon February 19th, 2009 @ 08:34 PM
right, thanks for your quick reply and explanations.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>