Skip to content

Commit

Permalink
Upgrade solid cache to address NoMethodError
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rossta committed Sep 3, 2024
1 parent 072b8dc commit 582c3d7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ GEM
logfmt (>= 0.0.10)
sqlite3
logfmt (0.0.10)
logger (1.6.0)
logger (1.6.1)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand All @@ -299,7 +299,7 @@ GEM
mini_magick (4.13.2)
mini_mime (1.1.5)
mini_portile2 (2.8.7)
minitest (5.24.1)
minitest (5.25.1)
mission_control-jobs (0.2.1)
importmap-rails
rails (~> 7.1)
Expand All @@ -317,9 +317,9 @@ GEM
net-smtp (0.5.0)
net-protocol
nio4r (2.7.3)
nokogiri (1.16.6-arm64-darwin)
nokogiri (1.16.7-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.6-x86_64-linux)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
openssl (3.2.0)
parallel (1.25.1)
Expand All @@ -346,7 +346,7 @@ GEM
puma (6.4.2)
nio4r (~> 2.0)
raabro (1.4.0)
racc (1.8.0)
racc (1.8.1)
rack (3.1.7)
rack-mini-profiler (3.3.1)
rack (>= 1.2.0)
Expand Down Expand Up @@ -480,10 +480,10 @@ GEM
sitepress-core (= 4.0.2)
sprockets-rails (>= 2.0.0)
smart_properties (1.17.0)
solid_cache (0.6.0)
activejob (>= 7)
activerecord (>= 7)
railties (>= 7)
solid_cache (1.0.2)
activejob (>= 7.2)
activerecord (>= 7.2)
railties (>= 7.2)
solid_queue (0.3.4)
activejob (>= 7.1)
activerecord (>= 7.1)
Expand Down Expand Up @@ -517,7 +517,7 @@ GEM
railties (>= 6.0.0)
stringio (3.1.1)
strscan (3.1.0)
thor (1.3.1)
thor (1.3.2)
timeout (0.4.1)
turbo-rails (2.0.6)
actionpack (>= 6.0.0)
Expand Down Expand Up @@ -561,7 +561,7 @@ GEM
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.16)
zeitwerk (2.6.18)

PLATFORMS
arm64-darwin-22
Expand Down

0 comments on commit 582c3d7

Please sign in to comment.