Module: Phlex::DeferredRenderWithMainContent
- Included in:
- UltimateTurboModal::Base
- Defined in:
- lib/phlex/deferred_render_with_main_content.rb
Instance Method Summary collapse
Instance Method Details
#view_template(&block) ⇒ Object
5 6 7 8 |
# File 'lib/phlex/deferred_render_with_main_content.rb', line 5 def view_template(&block) output = capture(&block) super { respond_to?(:unsafe_raw) ? unsafe_raw(output) : raw(output) } end |