From 974b6acdfc17f4271013db81d21a7d0ee460222a Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Sun, 26 Apr 2015 15:49:35 -0700 Subject: Don't document internal monkey patch for mysql gem [ci skip] Also added reference for to_date, as it belongs historically. --- activerecord/lib/active_record/connection_adapters/mysql_adapter.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') 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 -- cgit v1.2.3