Module: ViewComponent::FragmentCaching
- Defined in:
- lib/view_component/fragment_caching.rb,
lib/view_component/fragment_caching/engine.rb,
lib/view_component/fragment_caching/version.rb,
lib/view_component/fragment_caching/configuration.rb,
lib/view_component/fragment_caching/digestors/with_view_component_rb.rb,
lib/view_component/fragment_caching/trackers/view_component_tracking.rb,
lib/view_component/fragment_caching/resolvers/view_component_resolver.rb
Defined Under Namespace
Modules: Digestors, Resolvers, Trackers
Classes: Configuration, Engine
Constant Summary
collapse
- VERSION =
'0.4.0'.freeze
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
9
10
11
|
# File 'lib/view_component/fragment_caching.rb', line 9
def configuration
@configuration ||= Configuration.new
end
|
13
14
15
|
# File 'lib/view_component/fragment_caching.rb', line 13
def configure
yield configuration
end
|
.initialize!(context:) ⇒ Object
17
18
19
|
# File 'lib/view_component/fragment_caching.rb', line 17
def initialize!(context:)
prepend_view_component_paths context
end
|