Skip to content

Fix inheriting default column options #338

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

Merged
merged 1 commit into from
May 1, 2025

Conversation

pokonski
Copy link
Contributor

@pokonski pokonski commented Apr 10, 2025

This fixes a regression caused by #333 in https://github.com/bogdan/datagrid/pull/333/files#diff-e862b050fb30334bd970ac6714786a6120a21c965b4a95f3f57b3f4792adafaeR382.

Merging the default options was moved into the initializer, but it still used the raw argument options instead of @options. Ruby chose the locally scoped options from arguments instead of the attribute reader.

Solved by renaming the argument to avoid ambiguity

@pokonski pokonski force-pushed the fix-options-inheritance branch from 1b6d7b3 to 6172bea Compare April 10, 2025 10:08
@pokonski pokonski force-pushed the fix-options-inheritance branch from a93f184 to 998f931 Compare April 10, 2025 10:23
@bogdan bogdan merged commit 961cddc into bogdan:main May 1, 2025
6 checks passed
@pokonski
Copy link
Contributor Author

pokonski commented Jul 7, 2025

@bogdan hello! Is it possible to release a stable version to rubygems with this fix?

@bogdan
Copy link
Owner

bogdan commented Jul 7, 2025

v2.0.3. Enjoy.

@pokonski
Copy link
Contributor Author

pokonski commented Jul 7, 2025

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants