module HocusPocus::Editor::TemplateRendererExtension
Public Instance Methods
render_template(view, template, layout_name, locals)
click to toggle source
Calls superclass method
# File engines/editor/lib/hocus_pocus/editor/railtie.rb, line 25 def render_template(view, template, layout_name, locals) Thread.current[HocusPocus::Editor::VIEW_FILENAME] = template.virtual_path if view.controller.try(:request).try(:format).try(:html?) && !view.controller.class.name.starts_with?('HocusPocus::') super end