module Jb::TemlateResultCaster

Rails 7.1+: A monkey-patch not to stringify rendered object from JB templates

Public Instance Methods

_run(method, template, *, **) click to toggle source
Calls superclass method
# File lib/jb/action_view_monkeys.rb, line 25
def _run(method, template, *, **)
  val = super
  val = Jb::TemplateResult.new val if template.respond_to?(:handler) && (template.handler == Jb::Handler)
  val
end