Sha256: 8cd4364066b5003c8de7fc7f008dddce9735d4c94174c5bb195a654a43ce898d
Contents?: true
Size: 512 Bytes
Versions: 2
Compression:
Stored size: 512 Bytes
Contents
module MegaBar class LayoutSectionsController < MegaBar::ApplicationController include MegaBar::MegaBarConcern def get_options @options[:mega_bar_layout_sections] = { layout_ids: Layout.all.order('name asc').pluck("name, id"), template_section_id: TemplateSection.includes(:template).all.order('mega_bar_templates.id asc, mega_bar_template_sections.id asc').map{|ts| ["template #{ts.template_id} - #{ts.template.name} - #{ts.name}", ts.id] } } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mega_bar-0.5.2 | app/controllers/mega_bar/layout_sections_controller.rb |
mega_bar-0.5.1 | app/controllers/mega_bar/layout_sections_controller.rb |