Skip to content
Browse files

just access the ivars rather than rb_iv_get

  • Loading branch information...
1 parent 8d3e5c8 commit 19ca04a18463beef4f906c8d9879d095d6cc5f51 @tenderlove tenderlove committed Mar 14, 2013
Showing with 3 additions and 5 deletions.
  1. +3 −5 activerecord/lib/active_record/connection_adapters/schema_cache.rb
View
8 activerecord/lib/active_record/connection_adapters/schema_cache.rb
@@ -97,11 +97,9 @@ def clear_table_cache!(table_name)
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 do |val|
- instance_variable_get(val).dup.tap { |h|
- h.default_proc = nil
- }
- end
+ [@version] + [@columns, @columns_hash, @primary_keys, @tables].map { |val|
+ val.dup.tap { |h| h.default_proc = nil }
+ }
end
def marshal_load(array)

0 comments on commit 19ca04a

Please sign in to comment.
Something went wrong with that request. Please try again.