rom-rb/rom

Relax freezing policy for `ROM::Configurable`

v-kolesnikov opened this issue · 0 comments

Describe the bug

Freezing configuration settings in ROM::Support::Configurable is too aggressive

settings.each_value(&:freeze)

To Reproduce

Configuration setting may be an object that has mutations on itself, so we shouldn't freeze that objects. For example: rom-rb/rom-elasticsearch#14

Expected behavior

Mutable objects could be able to set as configuration settings.