lib/lorj_account.rb
# This internal function defines default section name per config index.
This internal function defines default section name per config index.
This internal function defines default section name per config index .
def _data_options_per_layer(layer_name, section)
      case layer_name
      when 'default'
        return { :section => :default, :metadata_section => section }
      when 'local'
        return { :section => :default }
      when 'account'
        return { :section => section } unless section.nil?
        return nil
      end
       Process/controller layers are SectionsConfig
       others (runtime/instant) are BaseConfig.
      nil
    end
def _data_options_per_layer ( layer_name , section ) case layer_name when 'default' return { :section => :default , :metadata_section => section } when 'local' return { :section => :default } when 'account' return { :section => section } unless section . nil? return nil end nil end
This internal function defines default section name per config index.
This internal function defines default section name per config index .
# runtime and local and default uses :default section # local & default are SectionConfig and is forced to use :default as # section name for each data. # If no section is provided, 'account' layer will use the first section # name # otherwise, it will used the section provided. # account is a SectionConfig and use section value defined by the # lorj data model. So the section name is not forced. # For SectionsConfig layer, :default is automatically set. # Except if there is later a need to set a section, nil is enough. # For BaseConfig, no options => nil # # Process/controller layers are SectionsConfig # others (runtime/instant) are BaseConfig.
layer_name
<not_specific>
section
<not_specific>