Skip to content

Commit 7b04e50

Browse files
committed
on second thought, lets keep casting on by default. it can be disabled in database.yml by setting 'cast: false'
1 parent aeb7beb commit 7b04e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def connect
629629
end
630630

631631
def configure_connection
632-
@connection.query_options.merge!(:as => :array, :cast => false)
632+
@connection.query_options.merge!(:as => :array)
633633

634634
# By default, MySQL 'where id is null' selects the last inserted id.
635635
# Turn this off. http://dev.rubyonrails.org/ticket/6778

0 commit comments

Comments
 (0)