mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
I ran `bundle exec spring binstub --all` after reading about the update in the changelog.
15 lines
501 B
Ruby
Executable File
15 lines
501 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
# This file loads Spring without using loading other gems in the Gemfile, in order to be fast.
|
|
# It gets overwritten when you run the `spring binstub` command.
|
|
|
|
if !defined?(Spring) && [nil, "development", "test"].include?(ENV["RAILS_ENV"])
|
|
require "bundler"
|
|
|
|
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"
|
|
end
|
|
end
|