Sha256: 50afd1704b8851e6d1b939c927885b5c0e7ac559270f1c6741dd4a4917df680d

Contents?: true

Size: 342 Bytes

Versions: 4

Compression:

Stored size: 342 Bytes

Contents

require_relative "version_checker"

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
react_on_rails-2.0.2 lib/react_on_rails/engine.rb
react_on_rails-2.0.1 lib/react_on_rails/engine.rb
react_on_rails-2.0.0 lib/react_on_rails/engine.rb
react_on_rails-2.0.0.rc.4 lib/react_on_rails/engine.rb