Sha256: 2772af7b942b885551232926f3529a917b1c4786e55b748150de5e42e7bae07a

Contents?: true

Size: 270 Bytes

Versions: 79

Compression:

Stored size: 270 Bytes

Contents

module ActiveSupport #:nodoc:
  module CoreExtensions #:nodoc:
    module Hash #:nodoc:
      module Diff
        def diff(h2)
          self.dup.delete_if { |k, v| h2[k] == v }.merge(h2.dup.delete_if { |k, v| self.has_key?(k) })
        end
      end
    end
  end
end

Version data entries

79 entries across 79 versions & 6 rubygems

Version Path
backlog-0.1.1 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.1.0 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.1.2 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.2.0 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.2.1 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.3.0 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.3.1 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.3.3 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.3.2 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.3.4 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.3.6 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.3.5 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.3.8 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.3.7 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.3.9 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.4.0 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.5.0 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.5.1 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.5.10 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.5.2 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb