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.

David James's latest activity

Monday, September 28 2009
3299 HashWithIndifferentAccess#merge should accept block just like Hash#merge was updated in Ruby on Rails
  • David James
    David James commented at 7:09 PM

    My workaround for now will be to using #to_hash to convert to a normal hash. Then I can use Hash#merge.

  • David James
    David James commented at 7:08 PM

    I forgot to mention that HashWithIndifferentAccess 'covers up' the underlying Hash#merge, making it hard to get to the original behavior.

  • David James
    David James created the ticket at 7:04 PM

    I would like to see ActiveSupport support the block form of merge.

      # from http://ruby-doc.org/core/classes/Hash.html#M002879
      hsh.merge(other_hash) do |key,...