Sha256: 9538a01167fa73d5cdb85c626f57d844d0bedb2ca2f949f17b9c36fbbd20d5f3
Contents?: true
Size: 459 Bytes
Versions: 17
Compression:
Stored size: 459 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$/ tab_name = $1 tabs << tab_name end tabs end end
Version data entries
17 entries across 17 versions & 1 rubygems