Class: ViewComponent::FragmentCaching::Configuration
- Inherits:
-
Object
- Object
- ViewComponent::FragmentCaching::Configuration
- Defined in:
- lib/view_component/fragment_caching/configuration.rb
Instance Attribute Summary collapse
-
#view_component_paths ⇒ Object
Returns the value of attribute view_component_paths.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 |
# File 'lib/view_component/fragment_caching/configuration.rb', line 8 def initialize self.view_component_path = if ViewComponent::Base.respond_to? :view_component_path ::ViewComponent::Base.view_component_path else ViewComponent::FragmentCaching::Engine.config.view_component.generate.path end end |
Instance Attribute Details
#view_component_paths ⇒ Object
Returns the value of attribute view_component_paths.
6 7 8 |
# File 'lib/view_component/fragment_caching/configuration.rb', line 6 def view_component_paths @view_component_paths end |