Sha256: e633a5124739c3d2cd4a5fe229f4aaf057e5b7839ab55550094f619b24c00b1c
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true module AsyncPartial class Railtie < ::Rails::Railtie initializer 'async_partial' do ActiveSupport.on_load :action_view do ActionView::PartialRenderer.prepend AsyncPartial::Renderer ActionView::OutputBuffer.prepend AsyncPartial::ArrayBuffer begin require 'action_view/template/handlers/erb/erubi' require_relative 'handlers/erubi' ActionView::Template::Handlers::ERB.erb_implementation = ActionView::Template::Handlers::ERB::ThreadSafeErubi rescue LoadError end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
async_partial-0.1.0 | lib/async_partial/railtie.rb |