lib/lorj_account.rb in lorj-1.0.1 vs lib/lorj_account.rb in lorj-1.0.2

- old
+ new

@@ -500,13 +500,13 @@ def _identify_indexes(options, account_exclusive) index = options[:index] if options.key?(:index) index = layer_index(options[:name]) if options.key?(:name) indexes = exclusive_indexes(account_exclusive) - options[:indexes] = indexes - indexes = [index] if !index.nil? && indexes.include?(index) + + options[:indexes] = indexes indexes end def _set_data_options_per_names(names) data_options = [] @@ -551,10 +551,10 @@ true end def index_to_update(layer_name, key, section) indexes = [0] # choose runtime by default. - indexes = _layer_indexes([layer_name]) unless layer_name.nil? + indexes = layer_indexes([layer_name]) unless layer_name.nil? if layer_name.nil? # Return runtime layer, if layer requested is not updatable. return [0] if indexes[0] <= (exclusive?(key, section) ? 1 : 3) end