David James
Not a member
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 commented at 7:09 PMMy workaround for now will be to using #to_hash to convert to a normal hash. Then I can use Hash#merge.
-
David James commented at 7:08 PMI forgot to mention that HashWithIndifferentAccess 'covers up' the underlying Hash#merge, making it hard to get to the original behavior.
-
David James created the ticket at 7:04 PMI 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,...