Closed davidgoldelocks closed 11 months ago
If end users want either of the monkey patches, they can require them directly:
require 'deep_merge/deep_merge_hash'
require 'deep_merge/rails_compat'
I'm open to a PR with this change. I'll likely bump the major version, though, since it's possible someone is implicitly depending on the Hash
monkey patch in their application.
followup to #120
DeepMerge
can be loaded in 3 different ways:core
librarycore
library + the defaultHash
monkey patchcore
library + an alternativeHash
monkey patch that does not conflict withActiveSupport
Config
is currently using the 2nd variant: https://github.com/rubyconfig/config/blob/9c35a5d579e548b2c439cd4defb247baf51dbb64/lib/config.rb#L9However,
Config
does not actually use the monkey patch, so it should switch to the 1st variant:This is conceptually cleaner and prevents the conflict with
ActiveSupport
.