-
Notifications
You must be signed in to change notification settings - Fork 47
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
Meilisearch Ruby now expects snake_cased attributes instead of camelCase. #311
Comments
Could you provide the meilisearch configuration block in your model that is causing this warning? |
Here it is, and it is all configuration blocks not just one. meilisearch do
attribute :name, :brand_name, :state_name, :created_at, :region_name, :brand_id
attribute :state_abbr do
state_abbreviation
end
attribute :store_chain do
store_chain_name || "Independent"
end
attribute :region_id do
region.id
end
filterable_attributes [:brand_name, :state_abbr, :region_name, :region_id, :brand_id]
sortable_attributes [:state_name, :brand_name, :region_name, :store_chain, :name]
end |
It does not happen to me on a brand new rails app and I cannot tell what could be causing the issue. The camel cased Some follow up questions if you don't mind answering:
|
|
Thank you
By manual I meant doing something like |
@coder2000, are you still having the issue after @ellnix's help? Can you confirm your gems (meilisearch-ruby and meilisearch-rails are the latest? |
I didn't really help in any way. I tried but could not reproduce it, left the issue open to follow up if and when we refactored the gem. |
I'm not seeing this anymore with the latest version of the gem so I will close it. |
Description
Deprecation warning with current Meilisearch Ruby version says that attributes will need to be snake_case in future versions.
Screenshots or Logs
The text was updated successfully, but these errors were encountered: