Module: MailerFragmentCaching

Includes:
ActionController::Caching::Fragments
Defined in:
lib/mailer_fragment_caching.rb

Instance Method Summary collapse

Instance Method Details

#cache_configured?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/mailer_fragment_caching.rb', line 13

def cache_configured?
  perform_caching && cache_store
end

#cache_storeObject



9
10
11
# File 'lib/mailer_fragment_caching.rb', line 9

def cache_store
  ActionController::Base.cache_store
end

#perform_cachingObject



5
6
7
# File 'lib/mailer_fragment_caching.rb', line 5

def perform_caching
  ActionController::Base.perform_caching
end