method

merge!

rails latest stable - Class: ActiveSupport::OrderedHash

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

merge!(other_hash)
public

No documentation available.

# File activesupport/lib/active_support/ordered_hash.rb, line 186
      def merge!(other_hash)
        if block_given?
          other_hash.each { |k, v| self[k] = key?(k) ? yield(k, self[k], v) : v }
        else
          other_hash.each { |k, v| self[k] = v }
        end
        self
      end