mirror of
https://github.com/meineerde/rackstash.git
synced 2025-10-17 14:01:01 +00:00
When setting `force: true` (the default), in both cases we not raise an ArgumentError when setting a forbidden field and overwrite existing fields. When setting it to `false`, we ignore forbidden or existing fields in both cases. We also allow a custom conflict resolution block to be passed to both methods. In the case of deep_merge! and deep_merge, this applies to all (potentially deeply nested) fields. Compatible objects, i.e. Hashes and Arrays are still always merged without calling the block.