Search only properly works with ransack with a paid license #2296
Closed
djalmaaraujo
started this conversation in
Feature feedback
Replies: 1 comment
-
|
Hmm. That should not happen. I tested it with these settings and it works fine. Are you using Reproductionrails new search_test
cd search_test
bin/rails app:template LOCATION='https://avohq.io/app-template'
bin/rails g model user name:string
rails db:migrate
bundle add ransack
rails sAlso add this to # `ransackable_attributes` by default returns all column names
# and any defined ransackers as an array of strings.
# For overriding with a whitelist array of strings.
#
def self.ransackable_attributes(auth_object = nil)
authorizable_ransackable_attributes
end
# `ransackable_associations` by default returns the names
# of all associations as an array of strings.
# For overriding with a whitelist array of strings.
#
def self.ransackable_associations(auth_object = nil)
authorizable_ransackable_associations
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried for many hours to make
query.ransackto work with a non-licensed version of avo. The resource search bar is displayed, but the console shows NO query at all with ransack.I imagine there's a incompatibility with the community version of avo, but I don't see any mention in the docs: https://docs.avohq.io/3.0/search.html#search.
I can see that
descriptiononly works with the pro version, but I would guess simply search would work. Once I applied the license (advanced) everything just started to work.I am not sure how to report as a bug, because my guess is this is a bad-documentation rather than a bug.
Can you confirm my suspicious?
Thanks.
Example code:
This code was not working. The rails server was showing "Select from messages" without any condition at all. Once I applied the license, everything just works.
Beta Was this translation helpful? Give feedback.
All reactions