Sha256: 3ebb58a04e0a9c1dd49454eb843a2e1cdc40fc4d91b0e52de04099b2fb537518
Contents?: true
Size: 480 Bytes
Versions: 40
Compression:
Stored size: 480 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) + hidden_field_tag('multifile-default-content', @files.to_json) end end
Version data entries
40 entries across 40 versions & 1 rubygems