This project is archived and is in readonly mode.

#1150 ✓wontfix
rbpandey

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

Reported by rbpandey | October 1st, 2008 @ 08:12 PM | in 2.x

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).

Comments and changes to this ticket

  • Pratik

    Pratik January 18th, 2009 @ 06:11 AM

    • 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.

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>

People watching this ticket

Attachments

Pages