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 ransack scopes integration. #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

oneamtu
Copy link
Contributor

@oneamtu oneamtu commented Mar 11, 2020

@danielaSerban
Copy link
Contributor

@oneamtu I looked into this a bit today and delegated the ransackable_scopes method to the caller class, which solved one of the problems. defined?(Ransack) returns nil probably, not sure why. removing the condition added the scopes correctly. However, calling super returns

super: no superclass method `ransackable_scopes' for #<ActsAsSpan::SpanKlass:0x000056515539d378>

which I guess makes sense, but I'm not sure how to set it up in our models to not overwrite all these whenever we add a custom ransackable_scope.

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