Skip to content

Commit

Permalink
Added docs for #version on mysql_adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
smartinez87 committed Apr 23, 2011
1 parent 3e678da commit 17d34d1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17d34d1

Please sign in to comment.