Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make deep_merge a soft-requirement #367

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zzak
Copy link

@zzak zzak commented Nov 13, 2024

The goal here is to remove deep_merge and rely entirely on ActiveSupport's Hash#deep_merge implementation.

This does mean that if you want to keep the existing behavior, or rely on DeepMerge's specific options, you need to add the following to your Gemfile:

gem 'deep_merge', '~> 1.2', '>= 1.2.1'

@pkuczynski Opening this as a proof-of-concept, would you be willing to take on this type of change?

I decided not to touch the config methods, even though they are no-op when deep_merge gem isn't included. Wanted to get feedback first, and I figure the warning is enough.

The goal here is to remove deep_merge and rely entirely on
ActiveSupport's `Hash#deep_merge` implementation.

This does mean that if you want to keep the existing behavior, or rely
on DeepMerge's specific options, you need to add the following to your
Gemfile:

```ruby
gem 'deep_merge', '~> 1.2', '>= 1.2.1'
```
@zzak zzak force-pushed the soft-require-deep_merge branch from 60fcabd to 85d692e Compare November 13, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant