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
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
activesupport-1.3.1 lib/active_support/core_ext/hash/diff.rb
activesupport-1.4.3 lib/active_support/core_ext/hash/diff.rb
activesupport-1.4.0 lib/active_support/core_ext/hash/diff.rb
activesupport-1.4.1 lib/active_support/core_ext/hash/diff.rb
activesupport-1.3.0 lib/active_support/core_ext/hash/diff.rb
activesupport-1.4.4 lib/active_support/core_ext/hash/diff.rb
activesupport-1.4.2 lib/active_support/core_ext/hash/diff.rb
backlog-0.0.0 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.0.1 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.0.2 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.0.4 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb
backlog-0.0.5 vendor/rails/activesupport/lib/active_support/core_ext/hash/diff.rb