Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Deprecation warning in xml serializer

#2020

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

Reported by Sébastien Grosjean - ZenCocoon · February 19th, 2009 @ 08:15 PM

State: invalid
Milestone: 2.x
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none

Activity

  1. Sébastien Grosjean - ZenCocoon
  2. Jeremy Kemper
    Jeremy Kemper
    • 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.

    February 19th, 2009 @ 08:24 PM

  3. Sébastien Grosjean - ZenCocoon
    Sébastien Grosjean - ZenCocoon

    right, thanks for your quick reply and explanations.

    February 19th, 2009 @ 08:34 PM