Skip to content

Commit 3d93d86

Browse files
committed
wow, maybe it's time for bed
1 parent 20ead8e commit 3d93d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mysql2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
module Mysql2
1616
end
1717

18-
if defined?(ActiveRecord::VERSION::STRING) < "3.1"
18+
if defined?(ActiveRecord::VERSION::STRING) && ActiveRecord::VERSION::STRING < "3.1"
1919
puts "WARNING: This version of mysql2 (#{Mysql2::VERSION}) doesn't ship with the ActiveRecord adapter bundled anymore as it's now part of Rails 3.1"
2020
puts "WARNING: Please use the 0.2.x releases if you plan on using it in Rails <= 3.0.x"
2121
end

0 commit comments

Comments
 (0)