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

NoMethodError - undefined method `model' for class SolidCache::Entry: #189

Closed
34code opened this issue Jul 24, 2024 · 3 comments
Closed

Comments

@34code
Copy link

34code commented Jul 24, 2024

Tried updating from 3x to 4x now getting this error..

@jwald1
Copy link

jwald1 commented Jul 24, 2024

I updated from version 0.5.3 to 0.6.0 and I'm experiencing the same error.

@jwald1
Copy link

jwald1 commented Jul 24, 2024

The issue appears to be that solid_cache is not yet compatible with Rails 7.2. It works fine with Rails 7.1. #179 fixes the issue

@djmb
Copy link
Collaborator

djmb commented Jul 26, 2024

Should be fixed in v0.7.0.

@djmb djmb closed this as completed Jul 26, 2024
rossta added a commit to joyofrails/joyofrails.com that referenced this issue Sep 3, 2024
SolidCache is raising errors in production following Rails 7.2 upgrade.

NoMethodError - undefined method `model' for class SolidCache::Entry

Same as reported here:
rails/solid_cache#189

The error was not captured in specs because we have been using the
NullStore for caching in tests.

This error can be reproduced by setting SolidCacheStore in tests. I
don’t want to enable this as the backend right now but may reconsider if
we continue to see issues across upgrades.
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