Sha256: 449bfd2a445e8d80d56223f112e691e8078ed4cca0fc66493401eba1dc417243

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

require "rails/railtie"

module ReactOnRails
  class Engine < ::Rails::Engine
    config.to_prepare do
      if File.exist?(VersionChecker::NodePackageVersion.package_json_path)
        VersionChecker.build.raise_if_gem_and_node_package_versions_differ
      end
      ReactOnRails::ServerRenderingPool.reset_pool
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
react_on_rails-8.0.1 lib/react_on_rails/engine.rb
react_on_rails-8.0.0 lib/react_on_rails/engine.rb
react_on_rails-8.0.0.beta.3 lib/react_on_rails/engine.rb