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