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

Add compiler for ActiveRecord::Store #1623

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

aramgre
Copy link
Contributor

@aramgre aramgre commented Aug 25, 2023

Motivation

Adds a DSL compiler for methods generated by ActiveRecord::Store.

Implementation

ActiveRecord:Store does not save the prefix or suffix options after defining accessors, so this PR overrides store_accessor, which is also called indirectly by store, to capture them.

Tests

Added

@aramgre aramgre requested a review from a team as a code owner August 25, 2023 22:04
@aramgre aramgre force-pushed the activerecord-store branch 2 times, most recently from 840ac69 to 352b225 Compare August 30, 2023 00:51
@KaanOzkan KaanOzkan added the enhancement New feature or request label Sep 5, 2023
Copy link
Contributor

@KaanOzkan KaanOzkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aramgre
Copy link
Contributor Author

aramgre commented Sep 12, 2023

I have signed the CLA!

@KaanOzkan
Copy link
Contributor

Thanks. I can merge once it's rebased on main.

@aramgre
Copy link
Contributor Author

aramgre commented Sep 13, 2023

Thanks @KaanOzkan, it's rebased

@KaanOzkan
Copy link
Contributor

I did a force push because the rebase removed a test expectation.

@KaanOzkan KaanOzkan merged commit df1ba95 into Shopify:main Sep 14, 2023
15 checks passed
@aramgre
Copy link
Contributor Author

aramgre commented Sep 14, 2023

Sorry about that rebase fail, thanks for fixing it @KaanOzkan 🙏

@shopify-shipit shopify-shipit bot temporarily deployed to production October 31, 2023 20:02 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants