diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-04-22 21:01:29 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-04-22 21:01:29 -0300 |
commit | 17d34d149e0622a2c4cdaecd7f3356f33a4a8b12 (patch) | |
tree | 6308a22b0aaea5ea51c78113258dd8efda128a30 | |
parent | 3e678daa720f26cffc889a301a1d27b89294d14a (diff) | |
download | rails-17d34d149e0622a2c4cdaecd7f3356f33a4a8b12.tar.gz rails-17d34d149e0622a2c4cdaecd7f3356f33a4a8b12.tar.bz2 rails-17d34d149e0622a2c4cdaecd7f3356f33a4a8b12.zip |
Added docs for #version on mysql_adapter
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql_adapter.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb index 82cfd10480..eaadbc179b 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb @@ -882,6 +882,7 @@ module ActiveRecord 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 |