scinote-web/app/helpers/repository_columns_helper.rb
2019-11-29 10:19:10 +01:00

9 lines
292 B
Ruby

# frozen_string_literal: true
module RepositoryColumnsHelper
def defined_delimiters_options
(%i(auto) + Constants::REPOSITORY_LIST_ITEMS_DELIMITERS_MAP.keys)
.map { |e| Hash[t('libraries.manange_modal_column.list_type.delimiters.' + e.to_s), e] }
.inject(:merge)
end
end