Sha256: ece02d062e806b409cd8fa87f46b6eb8290374cb1f270e6c5213301988063df2
Contents?: true
Size: 433 Bytes
Versions: 13
Compression:
Stored size: 433 Bytes
Contents
module DocumentsHelper # Find the list of tabs for the popup when creating a new document. Any erb file found in # 'app/views/templates/document_create_tabs' starting with an underscore will be used. def form_tabs tabs = [] Dir.entries(File.join(Zena::ROOT, 'app', 'views', 'templates', 'document_create_tabs')).sort.each do |file| next unless file =~ /^_(.*).rhtml$/ tabs << $1 end tabs end end
Version data entries
13 entries across 13 versions & 1 rubygems