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.

ActiveResource should have an option to normalize attribute key names when serializing data

#1150

I added an option ActiveResource::Base.dasherize_keys_on_encode to be passed to each respective format's encode method. I also underscored (undasherized) keys after JsonFormat.decode to be consistent with the behavior in XmlFormat.decode(ie Hash.from_xml).

Reported by rbpandey · October 1st, 2008 @ 08:12 PM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Pratik
    Pratik
    • Tag changed from 2.2, activeresource, enhancement, patch to 2.2, activeresource, enhancement, patch
    • State changed from new to wontfix

    I am not sure if this belongs to core or not. Maybe you should ask on the mailing list to see if more people need this or not. And will reconsider the patch if there's enough interest.

    Thanks.

    January 18th, 2009 @ 06:11 AM