Module: Slimmer
- Defined in:
- lib/slimmer.rb,
lib/slimmer/app.rb,
lib/slimmer/skin.rb,
lib/slimmer/test.rb,
lib/slimmer/headers.rb,
lib/slimmer/railtie.rb,
lib/slimmer/version.rb,
lib/slimmer/template.rb,
lib/slimmer/http_client.rb,
lib/slimmer/govuk_request_id.rb
Defined Under Namespace
Modules: Headers, Processors, Template
Classes: App, CouldNotRetrieveTemplate, GovukRequestId, HTTPClient, IntermittentRetrievalError, NoCache, Railtie, Skin, SourceWrapperNotFoundError, TemplateNotFoundException
Constant Summary
collapse
- CACHE_TTL =
60
- VERSION =
"18.6.2".freeze
Class Method Summary
collapse
Class Method Details
.cache ⇒ Object
16
17
18
|
# File 'lib/slimmer.rb', line 16
def self.cache
@cache ||= defined?(Rails) ? Rails.cache : NoCache.new
end
|
.cache=(cache) ⇒ Object
12
13
14
|
# File 'lib/slimmer.rb', line 12
def self.cache=(cache)
@cache = cache
end
|