compute timezone offset from difference between requested_at and server local time
This commit is contained in:
17
bin/spring
17
bin/spring
@@ -3,12 +3,17 @@
|
||||
# This file loads Spring without 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"])
|
||||
if !defined?(Spring) &&
|
||||
[nil, "development", "test", "staging"].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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user