Class: ViewComponent::FragmentCaching::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/view_component/fragment_caching/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_pathsObject

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