Sha256: 14d08c92655214ba05fa8545dbfd4215d558dfaf6172d272fb5d22913f35855c

Contents?: true

Size: 412 Bytes

Versions: 81

Compression:

Stored size: 412 Bytes

Contents

module MultipleFileEditorHelper
  def highlight_modes
    Language.all.map { |it| { extension: it.extension, highlight_mode: it.highlight_mode } }
  end

  def multifile_locales
    :insert_file_name.try { |it| { it => t(it) } }
  end

  def multifile_hidden_inputs
    hidden_field_tag('highlight-modes', highlight_modes.to_json) +
    hidden_field_tag('multifile-locales', multifile_locales.to_json)
  end
end

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
mumuki-laboratory-9.0.5 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-9.0.4 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-9.0.3 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-9.0.2 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-9.0.1 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-9.0.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-8.6.1 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-8.6.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-8.5.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-8.4.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-8.3.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-8.2.1 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-8.2.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-8.1.3 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-8.1.2 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-8.1.1 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-8.1.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.12.3 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-8.0.0 app/helpers/multiple_file_editor_helper.rb
mumuki-laboratory-7.12.1 app/helpers/multiple_file_editor_helper.rb