Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added docs for #version on mysql_adapter

  • Loading branch information...
commit 17d34d149e0622a2c4cdaecd7f3356f33a4a8b12 1 parent 3e678da
@smartinez87 smartinez87 authored
View
1  activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -882,6 +882,7 @@ def supports_views?
version[0] >= 5
end
+ # Returns the version of the connected MySQL server.
def version
@version ||= @connection.server_info.scan(/^(\d+)\.(\d+)\.(\d+)/).flatten.map { |v| v.to_i }
end

0 comments on commit 17d34d1

Please sign in to comment.
Something went wrong with that request. Please try again.