-
-
Notifications
You must be signed in to change notification settings - Fork 234
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
Add the overwrite_arrays option #103
Conversation
Hi @dtaniwaki, this is a great idea! Implementation wise, PR #110 has just been merged in - we now use the gem version of |
@fredwu |
@dtaniwaki Thanks for trying to update your pull request. Maybe you can use test cases added by me. I updated my branch to rewrite test cases with rspec Note I have not updated my implementation. I leave it up to you. |
This is an extraction from rubyconfig/config#103 where @dtaniwaki had added this option, but had done it prior to the deep_merge extraction. Paired with @carbonin <https://github.com/carbonin> on this.
This is an extraction from rubyconfig#103 where @dtaniwaki had added this option, but had done it prior to the deep_merge extraction. This depends on danielsdeleo/deep_merge#21 Paired with @carbonin <https://github.com/carbonin> on this.
This is an extraction from rubyconfig/config#103 where @dtaniwaki had added this option, but had done it prior to the deep_merge extraction. Paired with @carbonin <https://github.com/carbonin> on this.
This is an extraction from rubyconfig#103 where @dtaniwaki had added this option, but had done it prior to the deep_merge extraction. This depends on danielsdeleo/deep_merge#21 Paired with @carbonin <https://github.com/carbonin> on this.
This is an extraction from rubyconfig/config#103 where @dtaniwaki had added this option, but had done it prior to the deep_merge extraction. Paired with @carbonin <https://github.com/carbonin> on this.
This is an extraction from rubyconfig/config#103 where @dtaniwaki had added this option, but had done it prior to the deep_merge extraction. Paired with @carbonin <https://github.com/carbonin> on this.
This is an extraction from rubyconfig#103 where @dtaniwaki had added this option, but had done it prior to the deep_merge extraction. This depends on danielsdeleo/deep_merge#21 Paired with @carbonin <https://github.com/carbonin> on this.
This is an extraction from rubyconfig#103 where @dtaniwaki had added this option, but had done it prior to the deep_merge extraction. This depends on danielsdeleo/deep_merge#21 Paired with @carbonin <https://github.com/carbonin> on this.
Fixed in #137 using newer deep_merge gem |
This is an extraction from rubyconfig/config#103 where @dtaniwaki had added this option, but had done it prior to the deep_merge extraction. This depends on danielsdeleo/deep_merge#21 Paired with @carbonin <https://github.com/carbonin> on this.
I think we should be able to diable merging arrays.
e.g. Let's say you have the default settings like below.
config/settings.yml
And for production settings.
config/settings/production.yml
RailsConfig
merges the settings like below.However, I don't want to send email to
foo1@example.com
andfoo2@example.com
in production. Currently, we don't have any method to achieve this goal. So I just added an option to disable merging arrays.What do you think this idea?