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

Only works when config.cache_classes = false #45

Open
jnarowski opened this issue Nov 4, 2009 · 2 comments
Open

Only works when config.cache_classes = false #45

jnarowski opened this issue Nov 4, 2009 · 2 comments

Comments

@jnarowski
Copy link

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

@twalpole
Copy link

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?

@skaczor
Copy link

skaczor commented Apr 20, 2010

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

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

No branches or pull requests

3 participants