aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2015-04-26 15:49:35 -0700
committerZachary Scott <e@zzak.io>2015-04-26 15:49:35 -0700
commit974b6acdfc17f4271013db81d21a7d0ee460222a (patch)
tree655eaa03a69a2737a2e37d09c41026b69cb61c4d /activerecord/lib/active_record
parentdee4fbc90be183fc1596ad9c59d9ba1fbdb16ce7 (diff)
downloadrails-974b6acdfc17f4271013db81d21a7d0ee460222a.tar.gz
rails-974b6acdfc17f4271013db81d21a7d0ee460222a.tar.bz2
rails-974b6acdfc17f4271013db81d21a7d0ee460222a.zip
Don't document internal monkey patch for mysql gem [ci skip]
Also added reference for to_date, as it belongs historically.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/connection_adapters/mysql_adapter.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
index 45b935f1d6..18febf66b4 100644
--- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -5,8 +5,10 @@ require 'active_support/core_ext/hash/keys'
gem 'mysql', '~> 2.9'
require 'mysql'
-class Mysql
+class Mysql # :nodoc: all
class Time
+ # Used for casting DateTime fields to a MySQL friendly Time.
+ # This was documented in 48498da0dfed5239ea1eafb243ce47d7e3ce9e8e
def to_date
Date.new(year, month, day)
end