From 14c3c13699f5e6ea1c68f81f982ddd7b7634a219 Mon Sep 17 00:00:00 2001 From: David Cuddeback Date: Fri, 29 Jul 2011 12:01:40 -0700 Subject: [PATCH] Fix compatibility for Rails 2.3 --- lib/jasmine-headless-webkit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jasmine-headless-webkit.rb b/lib/jasmine-headless-webkit.rb index 1813185..d5b1fb7 100644 --- a/lib/jasmine-headless-webkit.rb +++ b/lib/jasmine-headless-webkit.rb @@ -5,5 +5,5 @@ module Jasmine end end -require 'jasmine/headless/railtie' if defined?(Rails) +require 'jasmine/headless/railtie' if defined?(Rails) && Rails::VERSION::MAJOR >= 3