You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was getting this error. Traced it to the search engine model.
For some reason my enable_for configs are coming through as classes and not strings as is expected by the search_engine model and safe_constantize is not defined on Active::Record classes. I had to comment out for it to work.
Any idea how an array of strings could be converted to an array of classes? I check code and can't find anything in the search gem that would suggest conversion.
I was seeing this too when I upgraded from refinery 2 to 3. My issue was that when I initially ported over the class names from the version 2 format, I wrote them like this:
Was getting this error. Traced it to the search engine model.
For some reason my
enable_for
configs are coming through as classes and not strings as is expected by thesearch_engine
model andsafe_constantize
is not defined on Active::Record classes. I had to comment out for it to work.jess@1c277b9
This is what my search config looks like:
Any idea how an array of strings could be converted to an array of classes? I check code and can't find anything in the search gem that would suggest conversion.
I tried creating another array in the config and it comes out just fine:
Must not be an issue for anyone else, but thought I'd throw it out and see if anyone has suggestions.
The text was updated successfully, but these errors were encountered: