Skip to content

Commit ca86653

Browse files
committed
Dissallow Rails < 4.2 to start the server
1 parent e426883 commit ca86653

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/spring/application.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ def preload
9191

9292
require Spring.application_root_path.join("config", "application")
9393

94+
unless Rails.respond_to?(:gem_version) && Rails.gem_version >= Gem::Version.new('4.2.0')
95+
raise "Spring only supports Rails >= 4.2.0"
96+
end
97+
9498
# config/environments/test.rb will have config.cache_classes = true. However
9599
# we want it to be false so that we can reload files. This is a hack to
96100
# override the effect of config.cache_classes = true. We can then actually

0 commit comments

Comments
 (0)