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 support for Kaminari #2

Merged
merged 4 commits into from
Dec 3, 2024
Merged

Conversation

rzane
Copy link
Contributor

@rzane rzane commented Nov 28, 2024

This PR adds a compiler for Kaminari.

@rzane rzane force-pushed the kaminari branch 2 times, most recently from a8f2379 to bf441c7 Compare December 2, 2024 21:22
@stathis-alexander
Copy link
Collaborator

Thanks @rzane ! Can you rebase off main?

Comment on lines +12 to +13
require "tapioca/dsl/compilers/active_record_relations"
require "tapioca/dsl/helpers/active_record_column_type_helper"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding these explicit requires allows us to remove the Tapioca shim.

If you add ActiveRecord.eager_load! to the bottom of this file, you could probably get rid of activerecord.rbi.

If you require attr_json here and run tapioca dsl, you can probably get rid of the attr_json shim.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks! I've had mixed success orchestrating all of these requires in the past with our internal projects, and it's been easier to just cut the shim. But I'll give it a try here!

Comment on lines +12 to +13
require "tapioca/dsl/compilers/active_record_relations"
require "tapioca/dsl/helpers/active_record_column_type_helper"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks! I've had mixed success orchestrating all of these requires in the past with our internal projects, and it's been easier to just cut the shim. But I'll give it a try here!

@stathis-alexander stathis-alexander merged commit 8ea8bfc into angellist:main Dec 3, 2024
1 check passed
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