Module: ActiveComponent::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/active_component/config.rb

Overview

The module for all global ActiveComponent configurations

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#component_options{Symbol => Object}

The options hash for Haml when used within Rails. See the Haml options documentation.

Returns:



13
14
15
# File 'lib/active_component/config.rb', line 13

def component_options
  @component_options
end

Instance Method Details

#template_engine_optionsObject



15
16
17
# File 'lib/active_component/config.rb', line 15

def template_engine_options
  Haml::Template.options
end

#template_engine_options=(options) ⇒ Object



19
20
21
# File 'lib/active_component/config.rb', line 19

def template_engine_options=(options)
  Haml::Template.options = options
end