Module: AbstractController::Caching::ConfigMethods
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
::AbstractController::Caching ,
::ActionController::API ,
::ActionController::Base ,
::ActionMailer::Base ,
::ActionView::TestCase::TestController ,
::Rails::ApplicationController ,
::Rails::HealthController ,
::Rails::InfoController ,
::Rails::MailersController ,
::Rails::PwaController ,
::Rails::WelcomeController
| |
Defined in: | actionpack/lib/abstract_controller/caching.rb |
Instance Attribute Summary
- #cache_store rw
- #cache_store=(store) rw
- #cache_configured? ⇒ Boolean readonly private
Instance Attribute Details
#cache_configured? ⇒ Boolean
(readonly, private)
[ GitHub ]
# File 'actionpack/lib/abstract_controller/caching.rb', line 24
def cache_configured? perform_caching && cache_store end
#cache_store (rw)
[ GitHub ]# File 'actionpack/lib/abstract_controller/caching.rb', line 15
def cache_store config.cache_store end
#cache_store=(store) (rw)
[ GitHub ]# File 'actionpack/lib/abstract_controller/caching.rb', line 19
def cache_store=(store) config.cache_store = ActiveSupport::Cache.lookup_store(*store) end