Permalink
Browse files

fix hash duping on 1.9

  • Loading branch information...
1 parent 5e0e415 commit 2394d28adec08da1bd3f204ff7f8a3a6a6f7bfb7 @tenderlove tenderlove committed Mar 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/schema_cache.rb
@@ -98,7 +98,7 @@ def marshal_dump
# if we get current version during initialization, it happens stack over flow.
@version = ActiveRecord::Migrator.current_version
[@version] + [@columns, @columns_hash, @primary_keys, @tables].map { |val|
- val.dup.tap { |h| h.default_proc = nil }
+ Hash[val]
}
end

0 comments on commit 2394d28

Please sign in to comment.