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 load problem with array of booleans

#5036

Hi,
I have resource which returns array of booleans and ActiveResource cannot load it. I found that code for array in ActiveResource::Base.load is not smart enought. I think that only valid arguments to new activeResource is Hash, os for me is better to test if element of array is hash instead of trying to catch some cases which is not Hash.

my proposed fix is attached together with testing xml and test (maybe element name is not correct)

Reported by Josef Reidinger · July 2nd, 2010 @ 02:32 PM

State: resolved
Milestone: none
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. José Valim
    José Valim
    • State changed from new to incomplete
    • Importance changed from to Low

    Nice, could you please provide a patch with tests following the conventions outline here: http://rails.lighthouseapp.com/projects/8994/sending-patches ?

    Thanks!

    July 8th, 2010 @ 10:20 PM

  2. Josef Reidinger
    Josef Reidinger

    Attached patch with test following conventions. If you find any problem feel free to ask me

    July 15th, 2010 @ 11:37 AM

  3. José Valim
    José Valim
    • State changed from incomplete to open

    Josef, I'm sorry but your patch no longer apply! Could you please rebase it? Thanks!

    July 18th, 2010 @ 10:31 AM

  4. Josef Reidinger
    Josef Reidinger

    Of course, here it is. Just note, that it is patch against 2-3-branch.

    July 19th, 2010 @ 08:19 AM

  5. José Valim
    José Valim

    Ahhh, it is for 2-3-stable branch? Would you mind providing a patch for 3.0 as well?

    July 19th, 2010 @ 02:30 PM

  6. Josef Reidinger
    Josef Reidinger

    OK, here it is, but due to changes in rails 3 I cannot run test suite, so please try run tests before submit ( I have installed gems for 2.3.8 app development ).

    July 19th, 2010 @ 02:45 PM

  7. José Valim
    José Valim

    Patch does not apply for Rails master. :(

    July 26th, 2010 @ 03:59 PM

  8. Josef Reidinger
    Josef Reidinger

    Oh, sorry. I still don't have enough practice in creating patches in correct branch. Here is correct one.

    July 27th, 2010 @ 08:57 AM

  9. Repository
    Repository
    • State changed from open to resolved

    August 2nd, 2010 @ 04:10 PM