From 7b04e5051ea0967eb7b571aef112c1190e0c93f7 Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Wed, 15 Jun 2011 20:03:12 -0700 Subject: [PATCH] on second thought, lets keep casting on by default. it can be disabled in database.yml by setting 'cast: false' --- .../lib/active_record/connection_adapters/mysql2_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb index 5c45f233f9c3..4e8667dc117c 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb @@ -629,7 +629,7 @@ def connect end def configure_connection - @connection.query_options.merge!(:as => :array, :cast => false) + @connection.query_options.merge!(:as => :array) # By default, MySQL 'where id is null' selects the last inserted id. # Turn this off. http://dev.rubyonrails.org/ticket/6778