Sha256: 72816429917c410f9949ff1b6cd7945a7a54be3876cdccb30344aba19c7de93d
Contents?: true
Size: 734 Bytes
Versions: 4
Compression:
Stored size: 734 Bytes
Contents
# frozen_string_literal: true require "connection_pool" require_relative "server_rendering_pool/exec" require_relative "server_rendering_pool/node" # Based on the react-rails gem. # None of these methods should be called directly. # See app/helpers/react_on_rails_helper.rb module ReactOnRails module ServerRenderingPool class << self def pool if ReactOnRails.configuration.server_render_method == "NodeJS" ServerRenderingPool::Node else ServerRenderingPool::Exec end end # rubocop:disable Style/MethodMissing def method_missing(sym, *args, &block) pool.send sym, *args, &block end # rubocop:enable Style/MethodMissing end end end
Version data entries
4 entries across 4 versions & 1 rubygems