-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
a8f2379
to
bf441c7
Compare
Thanks @rzane ! Can you rebase off main? |
require "tapioca/dsl/compilers/active_record_relations" | ||
require "tapioca/dsl/helpers/active_record_column_type_helper" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
require "tapioca/dsl/compilers/active_record_relations" | ||
require "tapioca/dsl/helpers/active_record_column_type_helper" |
There was a problem hiding this comment.
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!
This PR adds a compiler for Kaminari.