searchlogic icon indicating copy to clipboard operation
searchlogic copied to clipboard

Only works when config.cache_classes = false

Open jnarowski opened this issue 16 years ago • 2 comments

I love search logic, but cannot get it to run in production mode. I found out that the cache_classes setting was the culprit. I know searchlogic works dynamically, but is there a way to enable searchlogic with class_caching?

When the classes are not cached I get: undefined method cached_tags_contains' for #<Array:0x4e064c0> or undefined methodid_contains' for #Array:0x4e064c0

jnarowski avatar Nov 04 '09 02:11 jnarowski

Has anyone found a workaround for this? I understand it is probably a bug in rails 2.3.5, but is there anyway to workaround the issue, other than defining a bunch of named_scopes manually or setting cache_classes to false?

twalpole avatar Mar 10 '10 19:03 twalpole

I noticed this problem only when searchlogic is used to scope has_many associations. Base models don't cause this issue.

skaczor avatar Apr 20 '10 15:04 skaczor