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.7.3 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.7.4 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.7.5 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.7.6 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.7.7 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.7.8 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.7.9 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.8.0 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.9.0 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.8.1 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.9.1 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
monetra-ruby-0.0.6 lib/monetra/active_support/core_ext/hash/diff.rb
radiant-0.6.0 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
radiant-0.6.1 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
radiant-0.6.3 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
radiant-0.6.2 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
radiant-0.6.4 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
rq-3.4.0 rails/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
rq-3.3.0 rails/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb