Permalink
Browse files

on second thought, lets keep casting on by default. it can be disable…

…d in database.yml by setting 'cast: false'
  • Loading branch information...
1 parent aeb7beb commit 7b04e5051ea0967eb7b571aef112c1190e0c93f7 @brianmario brianmario committed Jun 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
View
2 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

0 comments on commit 7b04e50

Please sign in to comment.