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

Relax freezing policy for ROM::Configurable #616

Closed
v-kolesnikov opened this issue Dec 28, 2020 · 0 comments · Fixed by #617
Closed

Relax freezing policy for ROM::Configurable #616

v-kolesnikov opened this issue Dec 28, 2020 · 0 comments · Fixed by #617

Comments

@v-kolesnikov
Copy link
Collaborator

v-kolesnikov commented Dec 28, 2020

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.

@v-kolesnikov v-kolesnikov changed the title Relax freezing policy for ROM::Configurable::Config Relax freezing policy for ROM::Configurable Dec 28, 2020
solnic added a commit that referenced this issue Dec 29, 2020
#616 Relax freezing policy for `ROM::Configurable`

[changelog]

changed: "Configuration values are no longer being frozen during setup process (issue #616 fixed via #617) (@v-kolesnikov)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant