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.

close this ticket.

#1794

Ignore this ticket. Found the root of the problem, not related to rails.

Reported by McClain Looney · January 23rd, 2009 @ 09:24 PM

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

Activity

  1. McClain Looney
    McClain Looney

    (tested on edge and 2.2.2)

    January 23rd, 2009 @ 09:25 PM

  2. McClain Looney
    McClain Looney

    (and ruby 1.8.6 and 1.8.7 on osx)

    January 23rd, 2009 @ 09:25 PM

  3. McClain Looney
    McClain Looney

    very stupid patch that seems to do what i want:

    @@ -45,7 +50,8 @@
     
             (only_keys || hash.keys).each do |key|
               if value = hash[key]
    -            elements << value.to_query(key)
    +            elements << value.to_query(key) unless value.is_a? Hash
    +            elements << value.to_query() if value.is_a? Hash
               end
             end
    

    January 23rd, 2009 @ 09:27 PM

  4. McClain Looney
    McClain Looney

    nevermind, some vendored gem had its own to_query...

    close this.

    January 23rd, 2009 @ 09:32 PM

  5. McClain Looney
    McClain Looney
    • Title changed from to_query(arg) seems to fail for nested hashes to close this ticket.

    January 23rd, 2009 @ 09:34 PM

  6. Pratik
    Pratik
    • State changed from new to invalid

    January 24th, 2009 @ 01:51 AM