Module: Qor::Layout::LayoutHelper
- Defined in:
- app/helpers/qor/layout/layout_helper.rb
Instance Method Summary collapse
Instance Method Details
#render_layout(name) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/qor/layout/layout_helper.rb', line 4 def render_layout(name) html = Qor::Layout::Layout.detect_layout(name, self).try(:render, session[:layout_editing]).to_s if session[:layout_editing] html += <<-STRING <script class='qor_layout_script'> $(document).ready(function() { qlayout = qLayout.init($('script.qor_layout_script').parent()[0]); }); </script> STRING end html.html_safe end |