Permalink
Browse files

Added docs for #version on mysql_adapter

  • Loading branch information...
1 parent 3e678da commit 17d34d149e0622a2c4cdaecd7f3356f33a4a8b12 @smartinez87 smartinez87 committed Apr 23, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 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.