Class: MegaBar::MasterLayoutsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- MegaBar::MasterLayoutsController
- Defined in:
- app/controllers/mega_bar/master_layouts_controller.rb
Instance Method Summary collapse
Instance Method Details
#render_layout_with_sections ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/controllers/mega_bar/master_layouts_controller.rb', line 3 def render_layout_with_sections @mega_layout_sections ||= env['mega_final_layout_sections'] @mega_layout ||= env[:mega_layout] @mega_page = env[:mega_page] template = Template.find(@mega_layout[:template_id]) render template.code_name end |