def form_options(&block)
      items = block_given? ? selected(&block) : selected
      items.map { |item| [ item.localized_name, item.code ] }.to_h
    end
def form_options(&block)
      items = block_given? ? selected(&block) : selected
      items.map { |item| [ item.localized_name, item.code ] }.to_h
    end
Form Option