Fixed cache_store name used in adding other modules section of api app documentation. [ci skip]
- Using `mem_cached_store` results in an exception as lib/active_support/cache.rb:106:in `rescue in retrieve_store_class': Could not find cache store adapter for mem_cached_store (cannot load such file -- active_support/cache/mem_cached_store) (RuntimeError) - Changed the name of cache_store as `mem_cache_store` instead of `mem_cached_store`
This commit is contained in:
parent
c2f197c775
commit
e29fb52074
@ -425,7 +425,7 @@ Some common modules you might want to add:
|
|||||||
```ruby
|
```ruby
|
||||||
class ApplicationController < ActionController::API
|
class ApplicationController < ActionController::API
|
||||||
include ::ActionController::Caching
|
include ::ActionController::Caching
|
||||||
self.cache_store = :mem_cached_store
|
self.cache_store = :mem_cache_store
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
Rails does *not* pass this configuration automatically.
|
Rails does *not* pass this configuration automatically.
|
||||||
|
Loading…
Reference in New Issue
Block a user