Sha256: 9145b71eba30d9a3ea6ac306795a0321aac4621b1f3c379be8bf2545a2906153

Contents?: true

Size: 472 Bytes

Versions: 3

Compression:

Stored size: 472 Bytes

Contents

if !defined?(Spring) && [nil, "development", "test"].include?(ENV["RAILS_ENV"])
  gem "bundler"
  require "bundler"

  # Load Spring without loading other gems in the Gemfile, for speed.
  Bundler.locked_gems.specs.find { |spec| spec.name == "spring" }&.tap do |spring|
    Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
    gem "spring", spring.version
    require "spring/binstub"
  rescue Gem::LoadError
    # Ignore when Spring is not installed.
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
railties-6.1.2.1 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.2 lib/rails/generators/rails/app/templates/bin/spring.tt
railties-6.1.1 lib/rails/generators/rails/app/templates/bin/spring.tt