Sha256: 7b50be9936c9b4b7f6815424da2ab76e58d6604bb0d7cf8cb9e33d868be6cc08

Contents?: true

Size: 660 Bytes

Versions: 47

Compression:

Stored size: 660 Bytes

Contents

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
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
react_on_rails-8.0.1 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-8.0.0 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-8.0.0.beta.3 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-8.0.0.beta.2 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-8.0.0.beta.1 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-7.1.0.beta.3 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-7.0.4 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-7.1.0.beta.2 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-7.0.3 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-7.1.0.beta.1 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-7.0.2 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-7.0.1 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-7.0.0 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-6.10.1 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-6.10.0 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-6.9.3 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-6.9.2 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-6.9.1 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-6.9.0 lib/react_on_rails/server_rendering_pool.rb
react_on_rails-6.8.2 lib/react_on_rails/server_rendering_pool.rb