Module: Spark::Component::Integration::Element::ClassMethods

Defined in:
lib/spark/component/integration/action_view_component.rb

Overview

Override class methods when component is used as an element

Instance Method Summary collapse

Instance Method Details

#ensure_initializer_definedObject

This is used to force components to define an initialize method Overriding it means elements can defer to the original component’s initialize method



66
# File 'lib/spark/component/integration/action_view_component.rb', line 66

def ensure_initializer_defined; end

#source_locationObject

Allows elements to use component’s original tempalte file.



69
70
71
# File 'lib/spark/component/integration/action_view_component.rb', line 69

def source_location
  source_component.source_location
end